Skip to content

Commit

Permalink
Rename some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-ruiheng committed Apr 4, 2024
1 parent 038b265 commit 83202b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void execute_invalidIndex_throwsCommandException() {
}

@Test
public void execute_alreadyFavourite_success() {
public void execute_alreadyFavourite_successWithWarning() {
Set<Index> indices = Set.of(Index.fromOneBased(1));
Person firstPerson = model.getFilteredPersonList().get(INDEX_FIRST_PERSON.getZeroBased());
Person editedPerson = new PersonBuilder(firstPerson).withFavourite(true).build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void execute_invalidIndex_throwsCommandException() {
}

@Test
public void execute_alreadyNonFavouriteContact_success() {
public void execute_alreadyNonFavourite_successWithWarning() {
Person firstPerson = model.getFilteredPersonList().get(INDEX_FIRST_PERSON.getZeroBased());
Person editedPerson = new PersonBuilder(firstPerson).withFavourite(false).build();
model.setPerson(firstPerson, editedPerson);
Expand Down

0 comments on commit 83202b5

Please sign in to comment.