| 50 | static TimeZone defaultTimeZone = TimeZone.getDefault(); |
| 51 | |
| 52 | private static Stream<Arguments> data() { |
| 53 | String[] allTimeZones = TimeZone.getAvailableIDs(); |
| 54 | Random rand = new Random(123); |
| 55 | int len = allTimeZones.length; |
| 56 | int n = 500; |
| 57 | Arguments[] data = new Arguments[n]; |
| 58 | for (int i = 0; i < n; i++) { |
| 59 | int wIdx = rand.nextInt(len); |
| 60 | int rIdx = rand.nextInt(len); |
| 61 | data[i] = Arguments.of(allTimeZones[wIdx], allTimeZones[rIdx]); |
| 62 | } |
| 63 | return Stream.of(data); |
| 64 | } |
| 65 | |
| 66 | @BeforeEach |
| 67 | public void openFileSystem(TestInfo testInfo) throws Exception { |