@Test( expectedExceptions = AssertionError.class, expectedExceptionsMessageRegExp = ASSERTION_PATTERN) public void isDateAfterSameDayMonthYear() { assertThat( JUN_15_2012_11PM_AS_DATE, DateMatchers.after(new DayMonthYear(15, Months.JUNE, 2012))); }
@Test( expectedExceptions = AssertionError.class, expectedExceptionsMessageRegExp = ASSERTION_PATTERN) public void isDateAfterSameDeprecatedDateValues() { assertThat(JUN_15_2012_11PM_AS_DATE, DateMatchers.after(2012, Months.JUNE, 15)); }
@Test public void isDateAfterEarlierDeprecatedDateValues() { assertThat(JUN_15_2012_11PM_AS_DATE, DateMatchers.after(2012, Months.JUNE, 14)); }
@Test( expectedExceptions = AssertionError.class, expectedExceptionsMessageRegExp = ASSERTION_PATTERN) public void isDateAfterSameLocalDate() { assertThat(JUN_15_2012_11PM_AS_DATE, DateMatchers.after(JUN_15_2012)); }
@Test public void isDateAfterEarlierLocalDate() { assertThat(JUN_15_2012_11PM_AS_DATE, DateMatchers.after(JUN_14_2012)); }
@Test( expectedExceptions = AssertionError.class, expectedExceptionsMessageRegExp = ASSERTION_PATTERN) public void isDateAfterLaterSameDateDifferentTimeZone() { assertThat(JAN_01_2012_11AM_GMT_AS_DATE, DateMatchers.after(JAN_01_2012_11AM_PST_AS_DATE)); }
@Test public void isDateAfterSameDateDifferentTimeZone() { assertThat(JAN_01_2012_11AM_PST_AS_DATE, DateMatchers.after(JAN_01_2012_11AM_GMT_AS_DATE)); }
@Test( expectedExceptions = AssertionError.class, expectedExceptionsMessageRegExp = ASSERTION_PATTERN) public void isDateAfterSameDateTime() { assertThat(JUN_15_2012_11AM_AS_DATE, DateMatchers.after(2012, Months.JUNE, 15, 11, 00, 00)); }
@Test public void isDateAfterEarlierDateTime() { assertThat(JUN_15_2012_11AM_AS_DATE, DateMatchers.after(2012, Months.JUNE, 15, 10, 59, 59)); }
@Test public void isDateAfterEarlierDayMonthYear() { assertThat( JUN_15_2012_11PM_AS_DATE, DateMatchers.after(new DayMonthYear(14, Months.JUNE, 2012))); }