Skip to content

Commit

Permalink
Merge pull request AY2324S1-CS2103T-T09-2#222 from Mahidharah/Branch-…
Browse files Browse the repository at this point in the history
…Tests

Edit test files for storage, util, model and some command and parser files
  • Loading branch information
mingyu-wan authored Nov 8, 2023
2 parents ddf9630 + dfbb5e0 commit 6ef2183
Show file tree
Hide file tree
Showing 42 changed files with 777 additions and 370 deletions.
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"
}
]
}

This file was deleted.

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"
}
]
}

This file was deleted.

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"
}
]
}

This file was deleted.

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"
}
]
}

This file was deleted.

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"
} ]
}

This file was deleted.

2 changes: 1 addition & 1 deletion src/test/java/seedu/address/logic/LogicManagerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import static seedu.address.logic.commands.CommandTestUtil.NAME_DESC_AMY;
import static seedu.address.logic.commands.CommandTestUtil.PHONE_DESC_AMY;
import static seedu.address.testutil.Assert.assertThrows;
import static seedu.address.testutil.TypicalPersons.AMY;
import static seedu.address.testutil.TypicalDevelopers.AMY;

import java.io.IOException;
import java.nio.file.AccessDeniedException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static seedu.address.logic.commands.CommandTestUtil.assertCommandFailure;
import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccess;
import static seedu.address.testutil.TypicalPersons.getTypicalAddressBook;
import static seedu.address.testutil.TypicalDevelopers.getTypicalAddressBook;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.testutil.Assert.assertThrows;
import static seedu.address.testutil.TypicalPersons.ALICE;
import static seedu.address.testutil.TypicalDevelopers.ALICE;

import java.nio.file.Path;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package seedu.address.logic.commands;

import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccess;
import static seedu.address.testutil.TypicalPersons.getTypicalAddressBook;
import static seedu.address.testutil.TypicalDevelopers.getTypicalAddressBook;

import org.junit.jupiter.api.Test;

Expand Down
Loading

0 comments on commit 6ef2183

Please sign in to comment.