forked from nus-cs2103-AY2021S1/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 nus-cs2103-AY2021S1#92 from GeNiaaz/fix-testcases-…
…v1.2 Fix all testcases with non contextualised data
- Loading branch information
Showing
15 changed files
with
203 additions
and
181 deletions.
There are no files selected for viewing
10 changes: 6 additions & 4 deletions
10
src/test/data/JsonMainCatalogueStorageTest/invalidAndValidProjectMainCatalogue.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,15 @@ | ||
{ | ||
"projects": [ { | ||
"name": "Valid Project", | ||
"deadline": "9482424", | ||
"deadline": "29-02-2020 00:00:00", | ||
"repoUrl": "https://github.com/valid/valid.git", | ||
"projectDescription": "4th street" | ||
"projectDescription": "this project is valid", | ||
"projectTagged": [ "urgent" ] | ||
}, { | ||
"name": "Project With Invalid Phone Field", | ||
"name": "Project With Invalid deadline Field", | ||
"deadline": "948asdf2424", | ||
"email": "hans@example.com", | ||
"projectDescription": "4th street" | ||
"projectDescription": "4th street", | ||
"projectTagged": [ "redundant" ] | ||
} ] | ||
} |
5 changes: 3 additions & 2 deletions
5
src/test/data/JsonMainCatalogueStorageTest/invalidProjectMainCatalogue.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,9 @@ | ||
{ | ||
"projects": [ { | ||
"name": "Project with invalid name field: Ha!ns Mu@ster", | ||
"deadline": "9482424", | ||
"deadline": "32-42-32322 00:00", | ||
"repoUrl": "https://github.con/valid/valid.git", | ||
"projectDescription": "4th street" | ||
"projectDescription": "inv@lid d3scription", | ||
"projectTagged": [ "ss@$5v" ] | ||
} ] | ||
} |
12 changes: 6 additions & 6 deletions
12
src/test/data/JsonSerializableMainCatalogueTest/duplicateProjectMainCatalogue.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,15 +1,15 @@ | ||
{ | ||
"projects": [ { | ||
"projectName": "Alice Pauline", | ||
"projectName": "JuggerNought", | ||
"deadline": "29-02-2020 00:00:00", | ||
"repoUrl": "https://github.com/a/a.git", | ||
"projectDescription": "123, Jurong West Ave 6, #08-111", | ||
"projectTagged": [ "friends" ] | ||
"projectDescription": "Advanced aerial robotics", | ||
"projectTagged": [ "topsecret" ] | ||
}, { | ||
"projectName": "Alice Pauline", | ||
"projectName": "JuggerNought", | ||
"deadline": "29-02-2020 00:00:00", | ||
"repoUrl": "https://github.com/a/a.git", | ||
"projectDescription": "4th street", | ||
"projectTagged": ["writeDG"] | ||
"projectDescription": "Advanced aerial robotics", | ||
"projectTagged": ["topsecret"] | ||
} ] | ||
} |
7 changes: 4 additions & 3 deletions
7
src/test/data/JsonSerializableMainCatalogueTest/invalidProjectMainCatalogue.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,9 @@ | ||
{ | ||
"projects": [ { | ||
"projectName": "Hans Muster", | ||
"deadline": "29-02-2020 00:00:00", | ||
"projectName": "invalid @ $% pr0j3ct", | ||
"deadline": "29-02/020 00:00:00", | ||
"repoUrl": "https://invalid.com/invalid/invalid", | ||
"projectDescription": "4th street" | ||
"projectDescription": "this is n0t v@lid", | ||
"projectTagged": ["f@ulty"] | ||
} ] | ||
} |
38 changes: 19 additions & 19 deletions
38
src/test/data/JsonSerializableMainCatalogueTest/typicalProjectsMainCatalogue.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
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
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.