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