diff --git a/src/test/java/unicash/logic/commands/FindCommandTest.java b/src/test/java/unicash/logic/commands/FindCommandTest.java index d4face9150c..08d8b49cdbd 100644 --- a/src/test/java/unicash/logic/commands/FindCommandTest.java +++ b/src/test/java/unicash/logic/commands/FindCommandTest.java @@ -93,7 +93,7 @@ public void execute_predicateNull_assertionFailure() { FindCommand command = new FindCommand(null); expectedModel.updateFilteredTransactionList(predicate); - assertThrows(AssertionError.class, "predicate cannot be null", () -> command.execute(model)); + assertThrows(AssertionError.class, () -> command.execute(model)); } @Test diff --git a/src/test/java/unicash/logic/parser/ListCommandParserTest.java b/src/test/java/unicash/logic/parser/ListCommandParserTest.java index bfc4b7f9f0e..c1fc342c96a 100644 --- a/src/test/java/unicash/logic/parser/ListCommandParserTest.java +++ b/src/test/java/unicash/logic/parser/ListCommandParserTest.java @@ -32,7 +32,7 @@ public void parse_withExcessSpacing_throwsParseException() { @Test public void parse_withNullInput_assertionFailure() { - assertThrows(AssertionError.class, "userInput cannot be null", () -> parser.parse(null)); + assertThrows(AssertionError.class, () -> parser.parse(null)); }