@Test( expectedExceptions = AssertionError.class, expectedExceptionsMessageRegExp = ASSERTION_PATTERN) public void isLocalTimeAfterLaterLocalTime() { assertThat(LocalTime.NOON, LocalTimeMatchers.after(LocalTime.NOON.plusSeconds(1))); }
@Test public void isLocalTimeAfterEarlierLocalTime() { assertThat(LocalTime.NOON, LocalTimeMatchers.after(LocalTime.NOON.minusSeconds(1))); }