Skip to content

Commit

Permalink
Fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
alfaloo committed Apr 15, 2024
1 parent 02d21e9 commit ceb6b09
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/java/seedu/address/model/person/DoBTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public void constructor_null_throwsNullPointerException() {
@Test
public void constructor_invalidDoB_throwsIllegalArgumentException() {
String invalidDoB = "";
assertThrows(IllegalArgumentException.class, () -> new DoB(invalidDoB));
assertThrows(AssertionError.class, () -> new DoB(invalidDoB));
}

@Test
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/seedu/address/model/person/NricTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public void constructor_null_throwsNullPointerException() {
@Test
public void constructor_invalidNric_throwsIllegalArgumentException() {
String invalidNric = "A0234";
assertThrows(IllegalArgumentException.class, () -> new Nric(invalidNric));
assertThrows(AssertionError.class, () -> new Nric(invalidNric));
}

@Test
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/seedu/address/model/person/PhoneTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public void constructor_null_throwsNullPointerException() {
@Test
public void constructor_invalidPhone_throwsIllegalArgumentException() {
String invalidPhone = "";
assertThrows(IllegalArgumentException.class, () -> new Phone(invalidPhone));
assertThrows(AssertionError.class, () -> new Phone(invalidPhone));
}

@Test
Expand Down

0 comments on commit ceb6b09

Please sign in to comment.