@@ -22,33 +22,33 @@ class TimeZoneNativeTest {
22
22
}
23
23
24
24
@Test
25
- fun timezoneFileAgreesWithLocaltimeContents () = withFakeRoot(" ${RESOURCES } correct- localtime-copy /" ) {
25
+ fun timezoneFileAgreesWithLocaltimeContentsTest () = withFakeRoot(" ${RESOURCES } timezone-file-agrees-with- localtime-contents /" ) {
26
26
val tz = TimeZone .currentSystemDefault()
27
27
assertEquals(TimeZone .of(" Europe/Oslo" ), tz)
28
28
}
29
29
30
30
@Test
31
- fun fallbackToUTCWhenNoLocaltime () = withFakeRoot(" ${RESOURCES } missing -localtime/" ) {
31
+ fun fallbackToUTCWhenNoLocaltimeTest () = withFakeRoot(" ${RESOURCES } fallback-to-utc-when-no -localtime/" ) {
32
32
val tz = TimeZone .currentSystemDefault()
33
33
assertEquals(TimeZone .UTC , tz)
34
34
}
35
35
36
36
@Test
37
- fun missingTimezoneWhenLocaltimeIsNotSymlinkTest () = withFakeRoot(" ${RESOURCES } missing-timezone/" ) {
37
+ fun missingTimezoneWhenLocaltimeIsNotSymlinkTest () = withFakeRoot(" ${RESOURCES } missing-timezone-when-localtime-is-not-symlink /" ) {
38
38
assertFailsWith<IllegalTimeZoneException > {
39
39
TimeZone .currentSystemDefault()
40
40
}
41
41
}
42
42
43
43
@Test
44
- fun nonExistentTimezoneInTimezoneFile () = withFakeRoot(" ${RESOURCES } incorrect- timezone/" ) {
44
+ fun nonExistentTimezoneInTimezoneFileTest () = withFakeRoot(" ${RESOURCES } non-existent- timezone-in-timezone-file /" ) {
45
45
assertFailsWith<IllegalTimeZoneException > {
46
46
TimeZone .currentSystemDefault()
47
47
}
48
48
}
49
49
50
50
@Test
51
- fun timezoneFileDisagreesWithLocaltimeContentsTest () = withFakeRoot(" ${RESOURCES } different-timezones /" ) {
51
+ fun timezoneFileDisagreesWithLocaltimeContentsTest () = withFakeRoot(" ${RESOURCES } timezone-file-disagrees-with-localtime-contents /" ) {
52
52
val exception = assertFailsWith<IllegalTimeZoneException > {
53
53
TimeZone .currentSystemDefault()
54
54
}
0 commit comments