use of java.time.zone.ZoneOffsetTransitionRule in project j2objc by google.
the class TCKZoneOffsetTransitionRule method test_hashCode_floatingWeekBackwards.
@Test
public void test_hashCode_floatingWeekBackwards() {
ZoneOffsetTransitionRule a = ZoneOffsetTransitionRule.of(Month.MARCH, -1, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, OFFSET_0200, OFFSET_0200, OFFSET_0300);
ZoneOffsetTransitionRule b = ZoneOffsetTransitionRule.of(Month.MARCH, -1, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, OFFSET_0200, OFFSET_0200, OFFSET_0300);
assertEquals(a.hashCode(), b.hashCode());
}
use of java.time.zone.ZoneOffsetTransitionRule in project j2objc by google.
the class TCKZoneOffsetTransitionRule method test_equals_string_false.
@Test
public void test_equals_string_false() {
ZoneOffsetTransitionRule a = ZoneOffsetTransitionRule.of(Month.MARCH, 20, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, OFFSET_0200, OFFSET_0200, OFFSET_0300);
assertEquals(a.equals("TZDB"), false);
}
use of java.time.zone.ZoneOffsetTransitionRule in project j2objc by google.
the class TCKZoneOffsetTransitionRule method test_hashCode_floatingWeek_overlap_endOfDay_nullDayOfWeek.
@Test
public void test_hashCode_floatingWeek_overlap_endOfDay_nullDayOfWeek() {
ZoneOffsetTransitionRule a = ZoneOffsetTransitionRule.of(Month.OCTOBER, 20, null, LocalTime.MIDNIGHT, true, TimeDefinition.WALL, OFFSET_0200, OFFSET_0300, OFFSET_0200);
ZoneOffsetTransitionRule b = ZoneOffsetTransitionRule.of(Month.OCTOBER, 20, null, LocalTime.MIDNIGHT, true, TimeDefinition.WALL, OFFSET_0200, OFFSET_0300, OFFSET_0200);
assertEquals(a.hashCode(), b.hashCode());
}
use of java.time.zone.ZoneOffsetTransitionRule in project j2objc by google.
the class TCKZoneOffsetTransitionRule method test_equals_null_false.
@Test
public void test_equals_null_false() {
ZoneOffsetTransitionRule a = ZoneOffsetTransitionRule.of(Month.MARCH, 20, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, OFFSET_0200, OFFSET_0200, OFFSET_0300);
assertEquals(a.equals(null), false);
}
use of java.time.zone.ZoneOffsetTransitionRule in project j2objc by google.
the class TCKZoneOffsetTransitionRule method test_createTransition_floatingWeek_overlap_endOfDay.
@Test
public void test_createTransition_floatingWeek_overlap_endOfDay() {
ZoneOffsetTransitionRule test = ZoneOffsetTransitionRule.of(Month.MARCH, 20, DayOfWeek.SUNDAY, LocalTime.MIDNIGHT, true, TimeDefinition.WALL, OFFSET_0200, OFFSET_0300, OFFSET_0200);
ZoneOffsetTransition trans = ZoneOffsetTransition.of(LocalDateTime.of(2000, Month.MARCH, 27, 0, 0), OFFSET_0300, OFFSET_0200);
assertEquals(test.createTransition(2000), trans);
}
Aggregations