From 727effcab11029c7d916b874c676ba8ffa7065b5 Mon Sep 17 00:00:00 2001 From: "Damith C. Rajapakse" Date: Thu, 8 Sep 2016 22:51:27 +0800 Subject: [PATCH] Fix typos in LogicTest comments --- test/java/seedu/addressbook/logic/LogicTest.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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){