forked from nus-cs2103-AY2324S1/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 #261 from Kailash201/v1.4b
Fix storage test cases
- Loading branch information
Showing
7 changed files
with
54 additions
and
41 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 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
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 |
---|---|---|
|
@@ -8,10 +8,6 @@ | |
import static seedu.address.logic.commands.CommandTestUtil.VALID_NAME_BOB; | ||
import static seedu.address.logic.commands.CommandTestUtil.VALID_PHONE_AMY; | ||
import static seedu.address.logic.commands.CommandTestUtil.VALID_PHONE_BOB; | ||
import static seedu.address.testutil.TypicalGroups.CS2100; | ||
import static seedu.address.testutil.TypicalGroups.CS2102; | ||
import static seedu.address.testutil.TypicalGroups.CS2103; | ||
import static seedu.address.testutil.TypicalGroups.CS2105; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Arrays; | ||
|
@@ -28,7 +24,7 @@ public class TypicalPersons { | |
public static final Person ALICE = new PersonBuilder().withName("Alice Pauline") | ||
.withEmail("[email protected]") | ||
.withPhone("94351253") | ||
.withGroupList("CS2105", "CS2103T", "CS2103").build(); | ||
.withGroupList("CS2105", "CS2103").build(); | ||
public static final Person BENSON = new PersonBuilder().withName("Benson Meier") | ||
.withEmail("[email protected]").withPhone("98765432") | ||
.withGroupList("CS2105").build(); | ||
|
@@ -74,11 +70,10 @@ private TypicalPersons() {} // prevents instantiation | |
*/ | ||
public static AddressBook getTypicalAddressBook() { | ||
AddressBook ab = new AddressBook(); | ||
|
||
for (Person person : getTypicalPersons()) { | ||
ab.addPerson(person); | ||
} | ||
for (Group g: getTypicalGroups()) { | ||
for (Group g: TypicalGroups.getTypicalGroup()) { | ||
ab.addGroup(g); | ||
} | ||
return ab; | ||
|
@@ -89,8 +84,4 @@ public static ArrayList<Person> getTypicalPersons() { | |
return new ArrayList<>(Arrays.asList(ALICE, BENSON, CARL, DANIEL, ELLE, FIONA, GEORGE)); | ||
} | ||
|
||
public static ArrayList<Group> getTypicalGroups() { | ||
return new ArrayList<>(Arrays.asList(CS2100, CS2102, CS2103, CS2105)); | ||
} | ||
|
||
} |