Skip to content

Commit

Permalink
Update method name in test case
Browse files Browse the repository at this point in the history
  • Loading branch information
tingxuanp committed Oct 10, 2024
1 parent 4d8f3c7 commit 0b8bf83
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void execute_zeroKeywords_noPersonFound() {
@Test
public void execute_multipleKeywords_multiplePersonsFound() {
NameContainsKeywordsPredicate predicate = preparePredicate("Kurz Elle Kunz");
String expectedMessage = String.format(MESSAGE_FIND_PERSON_SUCCESS, predicate.displayString());
String expectedMessage = String.format(MESSAGE_FIND_PERSON_SUCCESS, predicate.getDisplayString());
FindCommand command = new FindCommand(predicate);
expectedModel.updateFilteredPersonList(predicate);
assertCommandSuccess(command, model, expectedMessage, expectedModel);
Expand All @@ -82,7 +82,7 @@ public void execute_multipleKeywords_multiplePersonsFound() {
@Test
public void execute_partialMatchKeyword_correctPersonFound() {
NameContainsKeywordsPredicate predicate = preparePredicate("ell");
String expectedMessage = String.format(MESSAGE_FIND_PERSON_SUCCESS, predicate.displayString());
String expectedMessage = String.format(MESSAGE_FIND_PERSON_SUCCESS, predicate.getDisplayString());
FindCommand command = new FindCommand(predicate);
expectedModel.updateFilteredPersonList(predicate);
assertCommandSuccess(command, model, expectedMessage, expectedModel);
Expand All @@ -92,7 +92,7 @@ public void execute_partialMatchKeyword_correctPersonFound() {
@Test
public void execute_partialMatchKeyword_multiplePersonsFound() {
NameContainsKeywordsPredicate predicate = preparePredicate("e");
String expectedMessage = String.format(MESSAGE_FIND_PERSON_SUCCESS, predicate.displayString());
String expectedMessage = String.format(MESSAGE_FIND_PERSON_SUCCESS, predicate.getDisplayString());
FindCommand command = new FindCommand(predicate);
expectedModel.updateFilteredPersonList(predicate);
assertCommandSuccess(command, model, expectedMessage, expectedModel);
Expand Down

0 comments on commit 0b8bf83

Please sign in to comment.