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