Skip to content

Commit

Permalink
Fix add command integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChooJeremy committed Nov 3, 2018
1 parent ae45130 commit 826a51a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
*/
public class AddCommandIntegrationTest {

public static final String UNIQUE_USERNAME = "John Brown";

private Model model;
private CommandHistory commandHistory = new CommandHistory();

Expand All @@ -34,7 +36,7 @@ public void setUp() {

@Test
public void execute_newPerson_success() {
Person validPerson = new PersonBuilder().build();
Person validPerson = new PersonBuilder().withUsername(UNIQUE_USERNAME).build();

Model expectedModel = new ModelManager(model.getAddressBook(), model.getAssignmentList(),
model.getArchiveList(), new UserPrefs());
Expand Down

0 comments on commit 826a51a

Please sign in to comment.