diff --git a/test/java/seedu/addressbook/logic/LogicTest.java b/test/java/seedu/addressbook/logic/LogicTest.java index 05622c95f..666fdc653 100644 --- a/test/java/seedu/addressbook/logic/LogicTest.java +++ b/test/java/seedu/addressbook/logic/LogicTest.java @@ -57,7 +57,8 @@ 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()); @@ -65,9 +66,9 @@ private void assertCommandBehavior(String inputCommand, String expectedMessage) /** * 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:
- * - the internal addressbook is same as {@code expectedAddressBook}
- * - the internal last shown list is the same as {@code expectedLastList}
+ * also confirms that the following three parts of the Logic object's state are as expected:
+ * - the internal address book data are same as those in the {@code expectedAddressBook}
+ * - the internal 'last shown list' matches the {@code expectedLastList}
* - the storage file content matches data in {@code expectedAddressBook}
*/ private void assertCommandBehavior(String inputCommand, @@ -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){