コード例 #1
0
 @Test(
     expectedExceptions = AssertionError.class,
     expectedExceptionsMessageRegExp = ASSERTION_PATTERN)
 public void isZonedDateTimeAfterDateTimeLaterZone() {
   assertThat(
       AUG_04_2015_NOON_UTC,
       ZonedDateTimeMatchers.after(2015, AUGUST, 4, 12, 0, 0, 0, ZoneIds.EST));
 }
コード例 #2
0
 @Test
 public void isZonedDateTimeAfterZonedDateTimeEarlierZone() {
   assertThat(AUG_04_2015_NOON_UTC, ZonedDateTimeMatchers.after(AUG_04_2015_NOON_CET));
 }
コード例 #3
0
 @Test
 public void isZonedDateTimeAfterDateTimeEarlierZone() {
   assertThat(
       AUG_04_2015_NOON_UTC,
       ZonedDateTimeMatchers.after(2015, AUGUST, 4, 12, 0, 0, 0, ZoneIds.CET));
 }
コード例 #4
0
 @Test(
     expectedExceptions = AssertionError.class,
     expectedExceptionsMessageRegExp = ASSERTION_PATTERN)
 public void isZonedDateTimeAfterSameZonedDateTime() {
   assertThat(AUG_04_2015_NOON_UTC, ZonedDateTimeMatchers.after(AUG_04_2015_NOON_UTC));
 }