Skip to content

Commit 756c89e

Browse files
#430: Refactoring
1 parent ea2b11f commit 756c89e

File tree

13 files changed

+5
-5
lines changed

13 files changed

+5
-5
lines changed

core/linux/test/TimeZoneNativeTest.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,33 +22,33 @@ class TimeZoneNativeTest {
2222
}
2323

2424
@Test
25-
fun timezoneFileAgreesWithLocaltimeContents() = withFakeRoot("${RESOURCES}correct-localtime-copy/") {
25+
fun timezoneFileAgreesWithLocaltimeContentsTest() = withFakeRoot("${RESOURCES}timezone-file-agrees-with-localtime-contents/") {
2626
val tz = TimeZone.currentSystemDefault()
2727
assertEquals(TimeZone.of("Europe/Oslo"), tz)
2828
}
2929

3030
@Test
31-
fun fallbackToUTCWhenNoLocaltime() = withFakeRoot("${RESOURCES}missing-localtime/") {
31+
fun fallbackToUTCWhenNoLocaltimeTest() = withFakeRoot("${RESOURCES}fallback-to-utc-when-no-localtime/") {
3232
val tz = TimeZone.currentSystemDefault()
3333
assertEquals(TimeZone.UTC, tz)
3434
}
3535

3636
@Test
37-
fun missingTimezoneWhenLocaltimeIsNotSymlinkTest() = withFakeRoot("${RESOURCES}missing-timezone/") {
37+
fun missingTimezoneWhenLocaltimeIsNotSymlinkTest() = withFakeRoot("${RESOURCES}missing-timezone-when-localtime-is-not-symlink/") {
3838
assertFailsWith<IllegalTimeZoneException> {
3939
TimeZone.currentSystemDefault()
4040
}
4141
}
4242

4343
@Test
44-
fun nonExistentTimezoneInTimezoneFile() = withFakeRoot("${RESOURCES}incorrect-timezone/") {
44+
fun nonExistentTimezoneInTimezoneFileTest() = withFakeRoot("${RESOURCES}non-existent-timezone-in-timezone-file/") {
4545
assertFailsWith<IllegalTimeZoneException> {
4646
TimeZone.currentSystemDefault()
4747
}
4848
}
4949

5050
@Test
51-
fun timezoneFileDisagreesWithLocaltimeContentsTest() = withFakeRoot("${RESOURCES}different-timezones/") {
51+
fun timezoneFileDisagreesWithLocaltimeContentsTest() = withFakeRoot("${RESOURCES}timezone-file-disagrees-with-localtime-contents/") {
5252
val exception = assertFailsWith<IllegalTimeZoneException> {
5353
TimeZone.currentSystemDefault()
5454
}

0 commit comments

Comments
 (0)