/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKClock_Fixed.java | 81 …private static final Instant INSTANT = LocalDateTime.of(2008, 6, 30, 11, 30, 10, 500).atZone(ZoneO… field in TCKClock_Fixed 85 Clock test = Clock.fixed(INSTANT, PARIS); in test_fixed_InstantZoneId() 86 assertEquals(test.instant(), INSTANT); in test_fixed_InstantZoneId() local 98 Clock.fixed(INSTANT, null); in test_fixed_InstantZoneId_nullZoneId() 103 Clock test = Clock.fixed(INSTANT, PARIS); in test_withZone() 110 Clock test = Clock.fixed(INSTANT, PARIS); in test_withZone_equal() 117 Clock.fixed(INSTANT, PARIS).withZone(null); in test_withZone_null() 122 Clock a = Clock.fixed(INSTANT, ZoneOffset.UTC); in test_equals() 123 Clock b = Clock.fixed(INSTANT, ZoneOffset.UTC); in test_equals() 129 Clock c = Clock.fixed(INSTANT, PARIS); in test_equals() [all …]
|
D | TCKClock.java | 113 private static final Instant INSTANT = Instant.ofEpochSecond(1873687, 357000000); field in TCKClock 115 private static final Clock MOCK_INSTANT = new MockInstantClock(INSTANT.toEpochMilli(), ZONE); 120 assertEquals(MOCK_INSTANT.instant(), INSTANT); in test_mockInstantClock_get() local 121 assertEquals(MOCK_INSTANT.millis(), INSTANT.toEpochMilli()); in test_mockInstantClock_get() 129 assertEquals(MOCK_INSTANT.instant(), INSTANT); in test_mockInstantClock_withZone() local 130 assertEquals(MOCK_INSTANT.millis(), INSTANT.toEpochMilli()); in test_mockInstantClock_withZone()
|
D | TCKClock_Offset.java | 82 …private static final Instant INSTANT = LocalDateTime.of(2008, 6, 30, 11, 30, 10, 500).atZone(ZoneO… field in TCKClock_Offset 87 Clock test = Clock.offset(Clock.fixed(INSTANT, PARIS), OFFSET); in test_offset_ClockDuration() 90 assertEquals(test.instant(), INSTANT.plus(OFFSET)); in test_offset_ClockDuration()
|
/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
D | TCKClockSerialization.java | 87 private static final Instant INSTANT = ZDT.toInstant(); field in TCKClockSerialization 105 assertSerializable(Clock.tick(Clock.fixed(INSTANT, PARIS), AMOUNT)); in test_tickClockSerializable() 110 assertSerializable(Clock.fixed(INSTANT, ZoneOffset.UTC)); in test_fixedClockSerializable() 111 assertSerializable(Clock.fixed(INSTANT, PARIS)); in test_fixedClockSerializable()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestClock_Fixed.java | 80 …private static final Instant INSTANT = LocalDateTime.of(2008, 6, 30, 11, 30, 10, 500).atZone(ZoneO… field in TestClock_Fixed 84 Clock test = Clock.fixed(INSTANT, PARIS); in test_withZone_same() 91 Clock test = Clock.fixed(INSTANT, PARIS); in test_toString()
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKFixedZoneRules.java | 92 private static final Instant INSTANT = LDT.toInstant(OFFSET_PONE); field in TCKFixedZoneRules 113 assertEquals(test.getOffset(INSTANT), expectedOffset); in test_getOffset_Instant() 150 assertEquals(test.getStandardOffset(INSTANT), expectedOffset); in test_getStandardOffset_Instant() 156 assertEquals(test.getDaylightSavings(INSTANT), Duration.ZERO); in test_getDaylightSavings_Instant() 162 assertEquals(test.isDaylightSavings(INSTANT), false); in test_isDaylightSavings_Instant() 169 assertEquals(test.nextTransition(INSTANT), null); in test_nextTransition_Instant() 175 assertEquals(test.previousTransition(INSTANT), null); in test_previousTransition_Instant()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeParsing.java | 101 private static final DateTimeFormatter INSTANT = new DateTimeFormatterBuilder() field in TestDateTimeParsing 103 private static final DateTimeFormatter INSTANT_WITH_PARIS = INSTANT.withZone(PARIS); 104 private static final DateTimeFormatter INSTANT_WITH_0230 = INSTANT.withZone(OFFSET_0230); 169 …{INSTANT, "2014-06-30T01:02:03Z", ZonedDateTime.of(2014, 6, 30, 1, 2, 3, 0, ZoneOffset.UTC).toInst… in data_instantNoZone()
|