use of java.time.MonthDay in project j2objc by google.
the class TCKMonthDay method test_isValidYear_febNonLeap.
@Test
public void test_isValidYear_febNonLeap() {
MonthDay test = MonthDay.of(2, 29);
assertEquals(test.isValidYear(2007), false);
}
use of java.time.MonthDay in project j2objc by google.
the class TCKMonthDay method test_hashCode.
// -----------------------------------------------------------------------
// hashCode()
// -----------------------------------------------------------------------
@Test()
@UseDataProvider("provider_sampleDates")
public void test_hashCode(int m, int d) {
MonthDay a = MonthDay.of(m, d);
assertEquals(a.hashCode(), a.hashCode());
MonthDay b = MonthDay.of(m, d);
assertEquals(a.hashCode(), b.hashCode());
}
use of java.time.MonthDay in project j2objc by google.
the class TestMonthDay method test_withDayOfMonth_noChangeSame.
@Test
public void test_withDayOfMonth_noChangeSame() {
MonthDay test = MonthDay.of(6, 30);
assertSame(test.withDayOfMonth(30), test);
}
use of java.time.MonthDay in project j2objc by google.
the class TestMonthDay method test_adjustDate_same.
@Test
public void test_adjustDate_same() {
MonthDay test = MonthDay.of(6, 30);
LocalDate date = LocalDate.of(2007, 6, 30);
assertSame(test.adjustInto(date), date);
}
Aggregations