Skip to content

Commit

Permalink
Fix typos in LogicTest comments
Browse files Browse the repository at this point in the history
  • Loading branch information
damithc committed Sep 8, 2016
1 parent 0af791c commit 727effc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/java/seedu/addressbook/logic/LogicTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,18 @@ public void execute_invalid() throws Exception {

/**
* Executes the command and confirms that the result message is correct.
* Both the address book and the last shown list is expected to be empty.
* Both the 'address book' and the 'last shown list' are expected to be empty.
* @see #assertCommandBehavior(String, String, AddressBook, boolean, List)
*/
private void assertCommandBehavior(String inputCommand, String expectedMessage) throws Exception {
assertCommandBehavior(inputCommand, expectedMessage, AddressBook.empty(),false, Collections.emptyList());
}

/**
* Executes the command and confirms that the result message is correct and
* confirms that the following three parts of the Logic object's state is as expected:<br>
* - the internal addressbook is same as {@code expectedAddressBook} <br>
* - the internal last shown list is the same as {@code expectedLastList} <br>
* also confirms that the following three parts of the Logic object's state are as expected:<br>
* - the internal address book data are same as those in the {@code expectedAddressBook} <br>
* - the internal 'last shown list' matches the {@code expectedLastList} <br>
* - the storage file content matches data in {@code expectedAddressBook} <br>
*/
private void assertCommandBehavior(String inputCommand,
Expand All @@ -79,7 +80,7 @@ private void assertCommandBehavior(String inputCommand,
//Execute the command
CommandResult r = logic.execute(inputCommand);

//Confirm the result contain the right data
//Confirm the result contains the right data
assertEquals(expectedMessage, r.feedbackToUser);
assertEquals(r.getRelevantPersons().isPresent(), isRelevantPersonsExpected);
if(isRelevantPersonsExpected){
Expand Down

0 comments on commit 727effc

Please sign in to comment.