MCPcopy Create free account
hub / github.com/apache/orc / data

Method data

java/core/src/test/org/apache/orc/TestOrcTimezone1.java:53–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 static TimeZone defaultTimeZone = TimeZone.getDefault();
52
53 private static Stream<Arguments> data() {
54 return Stream.of(/* Extreme timezones */
55 Arguments.of("GMT-12:00", "GMT+14:00"),
56 /* No difference in DST */
57 Arguments.of("America/Los_Angeles", "America/Los_Angeles"), /* same timezone both with DST */
58 Arguments.of("Europe/Berlin", "Europe/Berlin"), /* same as above but europe */
59 Arguments.of("America/Phoenix", "Asia/Kolkata") /* Writer no DST, Reader no DST */,
60 Arguments.of("Europe/Berlin", "America/Los_Angeles") /* Writer DST, Reader DST */,
61 Arguments.of("Europe/Berlin", "America/Chicago") /* Writer DST, Reader DST */,
62 /* With DST difference */
63 Arguments.of("Europe/Berlin", "UTC"),
64 Arguments.of("UTC", "Europe/Berlin") /* Writer no DST, Reader DST */,
65 Arguments.of("America/Los_Angeles", "Asia/Kolkata") /* Writer DST, Reader no DST */,
66 Arguments.of("Europe/Berlin", "Asia/Kolkata") /* Writer DST, Reader no DST */,
67 /* Timezone offsets for the reader has changed historically */
68 Arguments.of("Asia/Saigon", "Pacific/Enderbury"),
69 Arguments.of("UTC", "Asia/Jerusalem")
70
71 // NOTE:
72 // "1995-01-01 03:00:00.688888888" this is not a valid time in Pacific/Enderbury timezone.
73 // On 1995-01-01 00:00:00 GMT offset moved from -11:00 hr to +13:00 which makes all values
74 // on 1995-01-01 invalid. Try this with joda time
75 // new MutableDateTime("1995-01-01", DateTimeZone.forTimeZone(readerTimeZone));
76 );
77 }
78
79 @BeforeEach
80 public void openFileSystem(TestInfo testInfo) throws Exception {

Callers

nothing calls this directly

Calls 1

ofMethod · 0.80

Tested by

no test coverage detected