Skip to content

Commit

Permalink
adding yet another test to datetime parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
erosb committed Mar 15, 2016
1 parent d11439c commit 8637039
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ private void assertSuccess(final String subject, final FormatValidator format) {
Assert.assertFalse("failure not exist", opt.isPresent());
}

@Test
public void dateTimeExceedingLimits() {
assertFailure("1996-60-999T16:39:57-08:00", new DateTimeFormatValidator(),
"[1996-60-999T16:39:57-08:00] is not a valid date-time");
}

@Test
public void dateTimeFormatFailure() {
assertFailure("2015-03-13T11:00:000", new DateTimeFormatValidator(),
Expand Down

0 comments on commit 8637039

Please sign in to comment.