Skip to content

Commit ed6e3cd

Browse files
#430: Add testcontainers dependencies
1 parent 021c97b commit ed6e3cd

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

core/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,13 @@ kotlin {
221221
runtimeOnly(project(":kotlinx-datetime-zoneinfo"))
222222
}
223223
}
224+
225+
val jvmTest by getting {
226+
dependencies {
227+
implementation("org.testcontainers:testcontainers:1.19.7")
228+
implementation("org.testcontainers:junit-jupiter:1.19.7")
229+
}
230+
}
224231
}
225232
}
226233

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright 2019-2025 JetBrains s.r.o. and contributors.
3+
* Use of this source code is governed by the Apache 2.0 License that can be found in the LICENSE.txt file.
4+
*/
5+
6+
package testcontainers
7+
8+
import kotlinx.datetime.*
9+
import org.testcontainers.junit.jupiter.Testcontainers
10+
import kotlin.test.Test
11+
import kotlin.test.assertNotEquals
12+
13+
@Testcontainers
14+
class TimeZoneTest {
15+
@Test
16+
fun test() {
17+
val tz = TimeZone.currentSystemDefault()
18+
assertNotEquals(TimeZone.UTC, tz)
19+
println("System time zone: $tz")
20+
}
21+
}

0 commit comments

Comments
 (0)