commonTest.io.islandtime.test.AbstractIslandTimeTest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-metadata Show documentation
Show all versions of core-metadata Show documentation
A multiplatform library for working with dates and times
The newest version!
package io.islandtime.test
import io.islandtime.IslandTime
import io.islandtime.zone.PlatformTimeZoneRulesProvider
import io.islandtime.zone.TimeZoneRulesProvider
import kotlin.test.AfterTest
import kotlin.test.BeforeTest
abstract class AbstractIslandTimeTest(
private val timeZoneRulesProvider: TimeZoneRulesProvider = PlatformTimeZoneRulesProvider
) {
@BeforeTest
fun setUp() {
IslandTime.reset()
IslandTime.initializeWith(timeZoneRulesProvider)
}
@AfterTest
fun tearDown() {
IslandTime.reset()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy