Skip to content

Commit

Permalink
add junit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kappaccinoh committed Mar 20, 2024
1 parent 091ae99 commit 0be68bf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ public void execute_noMatch_noPatientFound() {

@Test
public void toStringMethod() {
NameContainsKeywordsPredicate predicate = new NameContainsKeywordsPredicate(Arrays.asList("keyword"));
FindCommand findCommand = new FindCommand(predicate);
String expected = FindCommand.class.getCanonicalName() + "{predicate=" + predicate + "}";
AppointmentContainsPatientPredicate predicate = new AppointmentContainsPatientPredicate(Arrays.asList("keyword"));
QueryPatientAppointmentCommand findCommand = new QueryPatientAppointmentCommand(predicate);
String expected = QueryPatientAppointmentCommand.class.getCanonicalName() + "{predicate=" + predicate + "}";
assertEquals(expected, findCommand.toString());
}

Expand Down

0 comments on commit 0be68bf

Please sign in to comment.