示例#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));
 }