Home
last modified time | relevance | path

Searched refs:expectedOffset (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKFixedZoneRules.java112 public void test_getOffset_Instant(ZoneRules test, ZoneOffset expectedOffset) { in test_getOffset_Instant() argument
113 assertEquals(test.getOffset(INSTANT), expectedOffset); in test_getOffset_Instant() local
114 assertEquals(test.getOffset((Instant) null), expectedOffset); in test_getOffset_Instant() local
118 public void test_getOffset_LocalDateTime(ZoneRules test, ZoneOffset expectedOffset) { in test_getOffset_LocalDateTime() argument
119 assertEquals(test.getOffset(LDT), expectedOffset); in test_getOffset_LocalDateTime() local
120 assertEquals(test.getOffset((LocalDateTime) null), expectedOffset); in test_getOffset_LocalDateTime() local
124 public void test_getValidOffsets_LDT(ZoneRules test, ZoneOffset expectedOffset) { in test_getValidOffsets_LDT() argument
126 assertEquals(test.getValidOffsets(LDT).get(0), expectedOffset); in test_getValidOffsets_LDT()
128 assertEquals(test.getValidOffsets(null).get(0), expectedOffset); in test_getValidOffsets_LDT()
132 public void test_getTransition_LDT(ZoneRules test, ZoneOffset expectedOffset) { in test_getTransition_LDT() argument
[all …]
/libcore/luni/src/test/java/libcore/java/time/
DZonedDateTimeTest.java99 ZoneId zone, LocalDateTime expectedDateTime, ZoneOffset expectedOffset) { in checkOfInstant() argument
107 assertEquals("offset" + message, expectedOffset, zonedDateTime.getOffset()); in checkOfInstant()
109 if (offset.equals(expectedOffset)) { in checkOfInstant()
169 ZoneOffset preferredOffset, LocalDateTime expectedDateTime, ZoneOffset expectedOffset) { in checkOfLocal() argument
176 assertEquals("offset" + message, expectedOffset, zonedDateTime.getOffset()); in checkOfLocal()
/libcore/ojluni/src/test/java/time/tck/java/time/zone/serial/
DTCKFixedZoneRulesSerialization.java101 public void test_serialization(ZoneRules test, ZoneOffset expectedOffset) throws Exception { in test_serialization() argument
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestZoneOffsetParser.java436 private void assertParsed(TemporalAccessor parsed, ZoneOffset expectedOffset) { in assertParsed() argument
437 if (expectedOffset == null) { in assertParsed()
441 assertEquals(parsed.getLong(OFFSET_SECONDS), (long) expectedOffset.getTotalSeconds()); in assertParsed()