forked from AY2324S1-CS2103T-T09-2/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request AY2324S1-CS2103T-T09-2#222 from Mahidharah/Branch-…
…Tests Edit test files for storage, util, model and some command and parser files
- Loading branch information
Showing
42 changed files
with
777 additions
and
370 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/test/data/JsonAddressBookStorageTest/invalidAndValidDeveloperAddressBook.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"developers" : [ { | ||
"name" : "Alex Yeoh", | ||
"phone" : "87438807", | ||
"email" : "alexyeoh@example.com", | ||
"address" : "Blk 30 Geylang Street 29, #06-40", | ||
"dateJoined" : "15-12-2019", | ||
"role" : "Developer", | ||
"salary" : "5000", | ||
"projects" : [ "TeamTrekker", "CodeContact" ], | ||
"githubId" : "mahidharah", | ||
"rating" : "5.0" | ||
},{ | ||
"name" : "Person with invalid name field: Ha!ns Mu@ster", | ||
"phone" : "9482424", | ||
"email" : "hans@example.com", | ||
"address" : "4th street", | ||
"dateJoined" : "15-12-2019", | ||
"role" : "Developer", | ||
"salary" : "5000", | ||
"projects" : [ "TeamTrekker", "CodeContact" ], | ||
"githubId" : "mahidharah", | ||
"rating" : "5.0" | ||
} | ||
] | ||
} |
16 changes: 0 additions & 16 deletions
16
src/test/data/JsonAddressBookStorageTest/invalidAndValidPersonAddressBook.json
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
src/test/data/JsonAddressBookStorageTest/invalidDeveloperAddressBook.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"developers" : [ { | ||
"name" : "Person with invalid name field: Ha!ns Mu@ster", | ||
"phone" : "9482424", | ||
"email" : "hans@example.com", | ||
"address" : "4th street", | ||
"dateJoined" : "15-12-2019", | ||
"role" : "Developer", | ||
"salary" : "5000", | ||
"projects" : [ "TeamTrekker", "CodeContact" ], | ||
"githubId" : "mahidharah", | ||
"rating" : "5.0" | ||
} | ||
] | ||
} |
10 changes: 0 additions & 10 deletions
10
src/test/data/JsonAddressBookStorageTest/invalidPersonAddressBook.json
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
src/test/data/JsonSerializableAddressBookTest/duplicateDeveloperAddressBook.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"developers" : [ { | ||
"name" : "Alex Yeoh", | ||
"phone" : "87438807", | ||
"email" : "alexyeohz@example.com", | ||
"address" : "Blk 15 Geylang Street 29, #06-40", | ||
"dateJoined" : "15-12-2019", | ||
"role" : "Developer", | ||
"salary" : "4000", | ||
"projects" : [ "TeamTrekkers", "CodeContact" ], | ||
"githubId" : "mahidharah1", | ||
"rating" : "4.0" | ||
},{ | ||
"name" : "Alex Yeoh", | ||
"phone" : "87438807", | ||
"email" : "alexyeoh@example.com", | ||
"address" : "Blk 30 Geylang Street 29, #06-40", | ||
"dateJoined" : "15-12-2019", | ||
"role" : "Developer", | ||
"salary" : "5000", | ||
"projects" : [ "TeamTrekker", "CodeContact" ], | ||
"githubId" : "mahidharah", | ||
"rating" : "5.0" | ||
} | ||
] | ||
} |
19 changes: 0 additions & 19 deletions
19
src/test/data/JsonSerializableAddressBookTest/duplicatePersonAddressBook.json
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
src/test/data/JsonSerializableAddressBookTest/invalidDeveloperAddressBook.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"developers" : [ { | ||
"name" : "Alex Yeoh", | ||
"phone" : "87438807", | ||
"email" : "invalid@email!3e", | ||
"address" : "Blk 30 Geylang Street 29, #06-40", | ||
"dateJoined" : "15-12-2019", | ||
"role" : "Developer", | ||
"salary" : "5000", | ||
"projects" : [ "TeamTrekker", "CodeContact" ], | ||
"githubId" : "mahidharah", | ||
"rating" : "5.0" | ||
} | ||
] | ||
} |
10 changes: 0 additions & 10 deletions
10
src/test/data/JsonSerializableAddressBookTest/invalidPersonAddressBook.json
This file was deleted.
Oops, something went wrong.
81 changes: 81 additions & 0 deletions
81
src/test/data/JsonSerializableAddressBookTest/typicalDevelopersAddressBook.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
"_comment": "AddressBook save file which contains the same Person values as in TypicalPersons#getTypicalAddressBook()", | ||
"developers" : [ { | ||
"name" : "Alex Yeoh", | ||
"phone" : "87438807", | ||
"email" : "alexyeoh@example.com", | ||
"address" : "Blk 30 Geylang Street 29, #06-40", | ||
"dateJoined" : "15-12-2019", | ||
"role" : "Developer", | ||
"salary" : "5000", | ||
"projects" : [ "TeamTrekker", "CodeContact" ], | ||
"githubId" : "mahidharah", | ||
"rating" : "5.0" | ||
}, { | ||
"name" : "Bernice Yu", | ||
"phone" : "99272758", | ||
"email" : "berniceyu@example.com", | ||
"address" : "Blk 30 Lorong 3 Serangoon Gardens, #07-18", | ||
"dateJoined" : "16-11-2020", | ||
"role" : "Developer", | ||
"salary" : "6000", | ||
"projects" : [ "Appollo", "Orbital" ], | ||
"githubId" : "mahidharah1", | ||
"rating" : "5.0" | ||
}, { | ||
"name" : "Charlotte Oliveiro", | ||
"phone" : "93210283", | ||
"email" : "charlotte@example.com", | ||
"address" : "Blk 11 Ang Mo Kio Street 74, #11-04", | ||
"dateJoined" : "20-10-2020", | ||
"role" : "Developer", | ||
"salary" : "4500", | ||
"projects" : [ "CodeContact" ], | ||
"githubId" : "mahidharah2", | ||
"rating" : "5.0" | ||
}, { | ||
"name" : "David Li", | ||
"phone" : "91031282", | ||
"email" : "lidavid@example.com", | ||
"address" : "Blk 436 Serangoon Gardens Street 26, #16-43", | ||
"dateJoined" : "23-09-2021", | ||
"role" : "Developer", | ||
"salary" : "5500", | ||
"projects" : [ "TeamTrekker", "Appollo" ], | ||
"githubId" : "mahidharah3", | ||
"rating" : "5.0" | ||
}, { | ||
"name" : "Mahidharah", | ||
"phone" : "81256788", | ||
"email" : "aunus@nus.com", | ||
"address" : "Blk 88 Lorong 8 Serangoon Gardens, #08-88", | ||
"dateJoined" : "20-10-2020", | ||
"role" : "Developer", | ||
"salary" : "8880", | ||
"projects" : [ "Appollo", "Orbital" ], | ||
"githubId" : "mahidharah88", | ||
"rating" : "5.0" | ||
}, { | ||
"name" : "Mahidharah2", | ||
"phone" : "81256788", | ||
"email" : "aunus@nus.com", | ||
"address" : "Blk 88 Lorong 8 Serangoon Gardens, #08-88", | ||
"dateJoined" : "20-10-2020", | ||
"role" : "Developer", | ||
"salary" : "8880", | ||
"projects" : [ "Appollo", "Orbital" ], | ||
"githubId" : "mahidharah88", | ||
"rating" : "5.0" | ||
}, { | ||
"name" : "Mahidharah3", | ||
"phone" : "81256788", | ||
"email" : "mahidharah@gmail.com", | ||
"address" : "Blk 88 Lorong 8 Serangoon Gardens, #08-88", | ||
"dateJoined" : "20-10-2020", | ||
"role" : "Developer", | ||
"salary" : "8880", | ||
"projects" : [ "Appollo", "Orbital" ], | ||
"githubId" : "mahidharah88", | ||
"rating" : "5.0" | ||
} ] | ||
} |
61 changes: 0 additions & 61 deletions
61
src/test/data/JsonSerializableAddressBookTest/typicalPersonsAddressBook.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/java/seedu/address/logic/commands/ClearCommandTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.