forked from nus-cs2103-AY2324S2/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
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 #151 from Tsenrae/Branch-DeprecatePerson
Deprecate Name, Phone and Address and update test cases to reflect new changes
- Loading branch information
Showing
24 changed files
with
216 additions
and
450 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
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 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
24 changes: 15 additions & 9 deletions
24
src/test/data/JsonAddressBookStorageTest/invalidAndValidPersonAddressBook.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 |
---|---|---|
@@ -1,13 +1,19 @@ | ||
{ | ||
"persons": [ { | ||
"name": "Valid Person", | ||
"phone": "9482424", | ||
"email": "[email protected]", | ||
"address": "4th street" | ||
"persons" : [ { | ||
"uuid" : "00000000-0000-0000-0000-000000000001", | ||
"attributes" : [ | ||
{ "name": "Name", "value": "Alice Pauline" }, | ||
{ "name": "Phone", "value": "94351253" }, | ||
{ "name": "Email", "value": "[email protected]" }, | ||
{ "name": "Address", "value": "123, Jurong West Ave 6, #08-111" } | ||
] | ||
}, { | ||
"name": "Person With Invalid Phone Field", | ||
"phone": "948asdf2424", | ||
"email": "[email protected]", | ||
"address": "4th street" | ||
"uuid" : "invalid uuid", | ||
"attributes" : [ | ||
{ "name": "Name", "value": "Alice Pauline" }, | ||
{ "name": "Phone", "value": "94351253" }, | ||
{ "name": "Email", "value": "[email protected]" }, | ||
{ "name": "Address", "value": "123, Jurong West Ave 6, #08-111" } | ||
] | ||
} ] | ||
} |
11 changes: 7 additions & 4 deletions
11
src/test/data/JsonAddressBookStorageTest/invalidPersonAddressBook.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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
{ | ||
"persons": [ { | ||
"name": "Person with invalid name field: Ha!ns Mu@ster", | ||
"phone": "9482424", | ||
"email": "[email protected]", | ||
"address": "4th street" | ||
"uuid" : "invalid uuid", | ||
"attributes" : [ | ||
{ "name": "Name", "value": "Alice Pauline" }, | ||
{ "name": "Phone", "value": "94351253" }, | ||
{ "name": "Email", "value": "[email protected]" }, | ||
{ "name": "Address", "value": "123, Jurong West Ave 6, #08-111" } | ||
] | ||
} ] | ||
} |
11 changes: 7 additions & 4 deletions
11
src/test/data/JsonSerializableAddressBookTest/invalidPersonAddressBook.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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
{ | ||
"persons": [ { | ||
"name": "Hans Muster", | ||
"phone": "9482424", | ||
"email": "invalid@email!3e", | ||
"address": "4th street" | ||
"uuid" : "invalid uuid", | ||
"attributes" : [ | ||
{ "name": "Name", "value": "Alice Pauline" }, | ||
{ "name": "Phone", "value": "94351253" }, | ||
{ "name": "Email", "value": "[email protected]" }, | ||
{ "name": "Address", "value": "123, Jurong West Ave 6, #08-111" } | ||
] | ||
} ] | ||
} |
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
4 changes: 2 additions & 2 deletions
4
src/test/java/seedu/address/logic/commands/DeleteAttributeCommandTest.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
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.