예제 #1
0
 @Test(expectedExceptions = CalendricalException.class)
 public void testMinusYearsInvalidTooSmall() {
   testDate.minusYears(20000);
 }
예제 #2
0
 // -----------------------------------------------------------------------
 // minusYears()
 // -----------------------------------------------------------------------
 @Test
 public void testMinusYears() {
   assertEquals(
       testDate.minusYears(10), MinguoDate.of(testYear - 10, testMonthOfYear, testDayOfMonth));
 }