/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKClock_Tick.java | 82 private static final ZoneId PARIS = ZoneId.of("Europe/Paris"); field in TCKClock_Tick 88 …Clock test = Clock.tick(Clock.fixed(ZDT.withNano(i * 1000_000).toInstant(), PARIS), Duration.ofMil… in test_tick_ClockDuration_250millis() 90 assertEquals(test.getZone(), PARIS); in test_tick_ClockDuration_250millis() local 96 …Clock test = Clock.tick(Clock.fixed(ZDT.withNano(i * 1000).toInstant(), PARIS), Duration.ofNanos(2… in test_tick_ClockDuration_250micros() 98 assertEquals(test.getZone(), PARIS); in test_tick_ClockDuration_250micros() local 104 … Clock test = Clock.tick(Clock.fixed(ZDT.withNano(i).toInstant(), PARIS), Duration.ofNanos(20)); in test_tick_ClockDuration_20nanos() 106 assertEquals(test.getZone(), PARIS); in test_tick_ClockDuration_20nanos() local 111 Clock underlying = Clock.system(PARIS); in test_tick_ClockDuration_zeroDuration() 117 Clock underlying = Clock.system(PARIS); in test_tick_ClockDuration_1nsDuration() 164 Clock test = Clock.tickSeconds(PARIS); in test_tickSeconds_ZoneId() [all …]
|
D | TCKClock_Offset.java | 81 private static final ZoneId PARIS = ZoneId.of("Europe/Paris"); field in TCKClock_Offset 87 Clock test = Clock.offset(Clock.fixed(INSTANT, PARIS), OFFSET); in test_offset_ClockDuration() 91 assertEquals(test.getZone(), PARIS); in test_offset_ClockDuration() local 95 Clock underlying = Clock.system(PARIS); in test_offset_ClockDuration_zeroDuration() 112 Clock test = Clock.offset(Clock.system(PARIS), OFFSET); in test_withZone() 114 assertEquals(test.getZone(), PARIS); in test_withZone() local 119 Clock test = Clock.offset(Clock.system(PARIS), OFFSET); in test_withZone_equal() 120 Clock changed = test.withZone(PARIS); in test_withZone_equal() 126 Clock.offset(Clock.system(PARIS), OFFSET).withZone(null); in test_withZone_null() 131 Clock a = Clock.offset(Clock.system(PARIS), OFFSET); in test_equals() [all …]
|
D | TCKClock_Fixed.java | 80 private static final ZoneId PARIS = ZoneId.of("Europe/Paris"); field in TCKClock_Fixed 85 Clock test = Clock.fixed(INSTANT, PARIS); in test_fixed_InstantZoneId() 87 assertEquals(test.getZone(), PARIS); in test_fixed_InstantZoneId() local 93 Clock.fixed(null, PARIS); in test_fixed_InstantZoneId_nullInstant() 103 Clock test = Clock.fixed(INSTANT, PARIS); in test_withZone() 105 assertEquals(test.getZone(), PARIS); in test_withZone() local 110 Clock test = Clock.fixed(INSTANT, PARIS); in test_withZone_equal() 111 Clock changed = test.withZone(PARIS); in test_withZone_equal() 112 assertEquals(changed.getZone(), PARIS); in test_withZone_equal() local 117 Clock.fixed(INSTANT, PARIS).withZone(null); in test_withZone_null() [all …]
|
D | TCKClock_System.java | 79 private static final ZoneId PARIS = ZoneId.of("Europe/Paris"); field in TCKClock_System 124 Clock test = Clock.system(PARIS); in test_system_ZoneId() 125 assertEquals(test.getZone(), PARIS); in test_system_ZoneId() local 135 Clock test = Clock.system(PARIS); in test_withZone() 137 assertEquals(test.getZone(), PARIS); in test_withZone() local 142 Clock test = Clock.system(PARIS); in test_withZone_equal() 143 Clock changed = test.withZone(PARIS); in test_withZone_equal() 144 assertEquals(changed.getZone(), PARIS); in test_withZone_equal() local 149 Clock changed = test.withZone(PARIS); in test_withZone_fromUTC() 150 assertEquals(changed.getZone(), PARIS); in test_withZone_fromUTC() local [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
D | TCKClockSerialization.java | 83 private static final ZoneId PARIS = ZoneId.of("Europe/Paris"); field in TCKClockSerialization 93 assertSerializable(Clock.system(PARIS)); in test_systemClockSerializable() 98 assertSerializable(Clock.offset(Clock.system(PARIS), AMOUNT)); in test_offsetClockSerializable() 103 assertSerializable(Clock.tickSeconds(PARIS)); in test_tickClockSerializable() 105 assertSerializable(Clock.tick(Clock.fixed(INSTANT, PARIS), AMOUNT)); in test_tickClockSerializable() 111 assertSerializable(Clock.fixed(INSTANT, PARIS)); in test_fixedClockSerializable()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestClock_System.java | 76 private static final ZoneId PARIS = ZoneId.of("Europe/Paris"); field in TestClock_System 79 Clock test = Clock.system(PARIS); in test_withZone_same() 80 Clock changed = test.withZone(PARIS); in test_withZone_same() 86 Clock test = Clock.system(PARIS); in test_toString()
|
D | TestClock_Fixed.java | 79 private static final ZoneId PARIS = ZoneId.of("Europe/Paris"); field in TestClock_Fixed 84 Clock test = Clock.fixed(INSTANT, PARIS); in test_withZone_same() 85 Clock changed = test.withZone(PARIS); in test_withZone_same() 91 Clock test = Clock.fixed(INSTANT, PARIS); in test_toString()
|
D | TestClock_Offset.java | 77 private static final ZoneId PARIS = ZoneId.of("Europe/Paris"); field in TestClock_Offset 82 Clock test = Clock.offset(Clock.system(PARIS), OFFSET); in test_withZone_same() 83 Clock changed = test.withZone(PARIS); in test_withZone_same()
|
D | TestClock_Tick.java | 81 private static final ZoneId PARIS = ZoneId.of("Europe/Paris"); field in TestClock_Tick 86 Clock test = Clock.tick(Clock.system(PARIS), Duration.ofMillis(500)); in test_withZone_same() 87 Clock changed = test.withZone(PARIS); in test_withZone_same()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeParsing.java | 90 private static final ZoneId PARIS = ZoneId.of("Europe/Paris"); field in TestDateTimeParsing 99 private static final DateTimeFormatter LOCALFIELDS_WITH_PARIS = LOCALFIELDS.withZone(PARIS); 103 private static final DateTimeFormatter INSTANT_WITH_PARIS = INSTANT.withZone(PARIS); 111 … private static final DateTimeFormatter INSTANTSECONDS_WITH_PARIS = INSTANTSECONDS.withZone(PARIS); 114 … static final DateTimeFormatter INSTANTSECONDS_NOS_WITH_PARIS = INSTANTSECONDS_NOS.withZone(PARIS); 121 …ELDS_ZONEID, "2014-06-30 01:02:03 Europe/Paris", ZonedDateTime.of(2014, 6, 30, 1, 2, 3, 0, PARIS)}, in data_instantZones() 124 … {LOCALFIELDS_WITH_PARIS, "2014-06-30 01:02:03", ZonedDateTime.of(2014, 6, 30, 1, 2, 3, 0, PARIS)}, in data_instantZones() 126 …T01:02:03Z", ZonedDateTime.of(2014, 6, 30, 1, 2, 3, 0, ZoneOffset.UTC).withZoneSameInstant(PARIS)}, in data_instantZones() 130 {INSTANTSECONDS_WITH_PARIS, "86402", Instant.ofEpochSecond(86402).atZone(PARIS)}, in data_instantZones() 131 …TSECONDS_NOS_WITH_PARIS, "86402.123456789", Instant.ofEpochSecond(86402, 123456789).atZone(PARIS)}, in data_instantZones()
|