示例#1
0
 @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)));
 }
示例#2
0
 @Test(
     expectedExceptions = AssertionError.class,
     expectedExceptionsMessageRegExp = ASSERTION_PATTERN)
 public void isDateAfterSameDeprecatedDateValues() {
   assertThat(JUN_15_2012_11PM_AS_DATE, DateMatchers.after(2012, Months.JUNE, 15));
 }
示例#3
0
 @Test
 public void isDateAfterEarlierDeprecatedDateValues() {
   assertThat(JUN_15_2012_11PM_AS_DATE, DateMatchers.after(2012, Months.JUNE, 14));
 }
示例#4
0
 @Test(
     expectedExceptions = AssertionError.class,
     expectedExceptionsMessageRegExp = ASSERTION_PATTERN)
 public void isDateAfterSameLocalDate() {
   assertThat(JUN_15_2012_11PM_AS_DATE, DateMatchers.after(JUN_15_2012));
 }
示例#5
0
 @Test
 public void isDateAfterEarlierLocalDate() {
   assertThat(JUN_15_2012_11PM_AS_DATE, DateMatchers.after(JUN_14_2012));
 }
示例#6
0
 @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));
 }
示例#7
0
 @Test
 public void isDateAfterSameDateDifferentTimeZone() {
   assertThat(JAN_01_2012_11AM_PST_AS_DATE, DateMatchers.after(JAN_01_2012_11AM_GMT_AS_DATE));
 }
示例#8
0
 @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));
 }
示例#9
0
 @Test
 public void isDateAfterEarlierDateTime() {
   assertThat(JUN_15_2012_11AM_AS_DATE, DateMatchers.after(2012, Months.JUNE, 15, 10, 59, 59));
 }
示例#10
0
 @Test
 public void isDateAfterEarlierDayMonthYear() {
   assertThat(
       JUN_15_2012_11PM_AS_DATE, DateMatchers.after(new DayMonthYear(14, Months.JUNE, 2012)));
 }