예제 #1
0
 @Test(expectedExceptions = NullPointerException.class)
 public void testWithMonthOfYearInvalidNull() throws Exception {
   testDate.withMonthOfYear(null);
 }
예제 #2
0
 // -----------------------------------------------------------------------
 // withMonthOfYear()
 // -----------------------------------------------------------------------
 @Test
 public void testWithMonthOfYear() {
   MinguoDate date = testDate.withMonthOfYear(MonthOfYear.APRIL);
   assertEquals(date, MinguoDate.of(testYear, MonthOfYear.APRIL, testDayOfMonth));
 }