use of java.time.MonthDay in project jdk8u_jdk by JetBrains.
the class TCKMonthDay method test_atYear_int.
//-----------------------------------------------------------------------
// atYear(int)
//-----------------------------------------------------------------------
@Test
public void test_atYear_int() {
MonthDay test = MonthDay.of(6, 30);
assertEquals(test.atYear(2008), LocalDate.of(2008, 6, 30));
}
use of java.time.MonthDay in project jdk8u_jdk by JetBrains.
the class TCKMonthDay method test_with_Month_noChangeEqual.
@Test
public void test_with_Month_noChangeEqual() {
MonthDay test = MonthDay.of(6, 30);
assertEquals(test.with(Month.JUNE), test);
}
use of java.time.MonthDay in project jdk8u_jdk by JetBrains.
the class TCKMonthDay method factory_parse_formatter.
//-----------------------------------------------------------------------
// parse(DateTimeFormatter)
//-----------------------------------------------------------------------
@Test
public void factory_parse_formatter() {
DateTimeFormatter f = DateTimeFormatter.ofPattern("M d");
MonthDay test = MonthDay.parse("12 3", f);
assertEquals(test, MonthDay.of(12, 3));
}
Aggregations