Exemplo n.º 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));
 }
Exemplo n.º 2
0
 @Test
 public void isZonedDateTimeAfterZonedDateTimeEarlierZone() {
   assertThat(AUG_04_2015_NOON_UTC, ZonedDateTimeMatchers.after(AUG_04_2015_NOON_CET));
 }
Exemplo n.º 3
0
 @Test
 public void isZonedDateTimeAfterDateTimeEarlierZone() {
   assertThat(
       AUG_04_2015_NOON_UTC,
       ZonedDateTimeMatchers.after(2015, AUGUST, 4, 12, 0, 0, 0, ZoneIds.CET));
 }
Exemplo n.º 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));
 }