Skip to content

Commit

Permalink
Fix test case bug
Browse files Browse the repository at this point in the history
  • Loading branch information
potaotototo committed Oct 30, 2024
1 parent ffc9693 commit c03b469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/tuteez/model/ModelManagerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ public void isLastViewPersonAvailable_afterRemoval_returnsFalse() {
}

@Test
public void isSamePersonAsPersonOnDisplay_nullPerson_throwsNullPointerException() {
assertThrows(NullPointerException.class, () -> modelManager.isSamePersonAsPersonOnDisplay(null));
public void isSamePersonAsPersonOnDisplay_nullPerson_returnsFalse() {
assertFalse(modelManager.isSamePersonAsPersonOnDisplay(null));
}

@Test
Expand Down

0 comments on commit c03b469

Please sign in to comment.