diff --git a/src/test/java/seedu/address/storage/JsonAdaptedPersonTest.java b/src/test/java/seedu/address/storage/JsonAdaptedPersonTest.java index 5ac38da85f4..d990153f5ce 100644 --- a/src/test/java/seedu/address/storage/JsonAdaptedPersonTest.java +++ b/src/test/java/seedu/address/storage/JsonAdaptedPersonTest.java @@ -93,7 +93,7 @@ public void toModelType_nullEmail_throwsIllegalValueException() { @Test public void toModelType_invalidNric_throwsIllegalValueException() { JsonAdaptedPerson person = - new JsonAdaptedPerson(VALID_NAME, VALID_PHONE, VALID_EMAIL, INVALID_NRIC, VALID_ADDRESS, VALID_TAGS); + new JsonAdaptedPerson(VALID_NAME, VALID_PHONE, VALID_EMAIL, INVALID_NRIC, VALID_ADDRESS, VALID_REMARK, VALID_TAGS); String expectedMessage = Nric.MESSAGE_CONSTRAINTS; assertThrows(IllegalValueException.class, expectedMessage, person::toModelType); } @@ -101,7 +101,7 @@ public void toModelType_invalidNric_throwsIllegalValueException() { @Test public void toModelType_nullNric_throwsIllegalValueException() { JsonAdaptedPerson person = new JsonAdaptedPerson(VALID_NAME, VALID_PHONE, VALID_EMAIL, null, - VALID_ADDRESS, VALID_TAGS); + VALID_ADDRESS, VALIR_REMARK, VALID_TAGS); String expectedMessage = String.format(MISSING_FIELD_MESSAGE_FORMAT, Nric.class.getSimpleName()); assertThrows(IllegalValueException.class, expectedMessage, person::toModelType); }