Skip to content

Commit

Permalink
Removed commented out code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdereg committed Jan 20, 2024
1 parent c4f96f6 commit 05bf55a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/test/java/com/cedarsoftware/util/convert/ConverterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1324,13 +1324,13 @@ void testLocalDateToOthers()
assertEquals(localDate, nd);

// Error handling
// try {
// this.converter.convert("2020-12-40", LocalDate.class);
// fail();
// }
// catch (IllegalArgumentException e) {
// TestUtil.assertContainsIgnoreCase(e.getMessage(), "day must be between 1 and 31");
// }
try {
this.converter.convert("2020-12-40", LocalDate.class);
fail();
}
catch (IllegalArgumentException e) {
TestUtil.assertContainsIgnoreCase(e.getMessage(), "day must be between 1 and 31");
}

assert this.converter.convert(null, LocalDate.class) == null;
}
Expand Down

0 comments on commit 05bf55a

Please sign in to comment.