Skip to content

Commit

Permalink
Remove expected message from assertion tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamz903 committed Oct 27, 2023
1 parent 84359e1 commit 9b70dd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/java/unicash/logic/commands/FindCommandTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));

}

Expand Down

0 comments on commit 9b70dd3

Please sign in to comment.