Skip to content

Commit 47be47e

Browse files
committed
Remove Junit
1 parent e368318 commit 47be47e

File tree

4 files changed

+3
-21
lines changed

4 files changed

+3
-21
lines changed

aws-crt-kotlin/build.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,6 @@ if (testJavaVersion != null) {
143143
}
144144

145145
tasks.withType<AbstractTestTask> {
146-
if (this is Test) useJUnitPlatform()
147-
148146
testLogging {
149147
events("passed", "skipped", "failed")
150148
showStandardStreams = true

aws-crt-kotlin/jvm/test/aws/sdk/kotlin/crt/http/HttpRequestResponseTest.kt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ package aws.sdk.kotlin.crt.http
88
import aws.sdk.kotlin.crt.util.Digest
99
import aws.sdk.kotlin.crt.util.encodeToHex
1010
import kotlinx.coroutines.runBlocking
11-
import org.junit.jupiter.api.AfterAll
12-
import org.junit.jupiter.api.BeforeAll
13-
import org.junit.jupiter.api.TestInstance
1411
import org.mockserver.client.MockServerClient
1512
import org.mockserver.integration.ClientAndServer
1613
import org.mockserver.model.HttpRequest.request
@@ -20,19 +17,17 @@ import kotlin.test.*
2017
private val TEST_DOC_LINE = "This is a sample to prove that http downloads and uploads work."
2118
private val TEST_DOC_SHA256 = "c7fdb5314b9742467b16bd5ea2f8012190b5e2c44a005f7984f89aab58219534"
2219

23-
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
2420
class HttpRequestResponseTest : HttpClientTest() {
25-
2621
lateinit var mockServer: MockServerClient
2722
lateinit var url: String
2823

29-
@BeforeAll
24+
@BeforeTest
3025
fun setup() {
3126
mockServer = ClientAndServer.startClientAndServer(0)
3227
url = "http://localhost:${mockServer.port}"
3328
}
3429

35-
@AfterAll
30+
@AfterTest
3631
fun tearDown() {
3732
mockServer.close()
3833
}

build-support/build.gradle.kts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ repositories {
1616
dependencies {
1717
compileOnly(kotlin("gradle-plugin"))
1818
compileOnly(kotlin("gradle-plugin-api"))
19-
20-
testImplementation(libs.junit.jupiter)
21-
testImplementation(libs.junit.jupiter.params)
22-
testImplementation(libs.kotlin.test.junit5)
2319
}
2420

2521
gradlePlugin {
@@ -32,7 +28,6 @@ gradlePlugin {
3228
}
3329

3430
tasks.test {
35-
useJUnitPlatform()
3631
testLogging {
3732
events("passed", "skipped", "failed")
3833
showStandardStreams = true

gradle/libs.versions.toml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,27 @@
11
[versions]
22
kotlin-version = "2.2.0"
33

4-
aws-kotlin-repo-tools-version = "0.4.49"
4+
aws-kotlin-repo-tools-version = "0.0.1"
55

66
# libs
77
crt-java-version = "0.38.1"
88
coroutines-version = "1.10.2"
99
binary-compatibility-validator-version = "0.18.0"
1010

1111
# testing
12-
junit-version = "5.13.2"
13-
kotest-version = "5.9.1"
1412
mock-server-version = "5.15.0"
1513

1614
[libraries]
1715
aws-kotlin-repo-tools-build-support = { module="aws.sdk.kotlin.gradle:build-support", version.ref = "aws-kotlin-repo-tools-version" }
1816
crt-java = { module = "software.amazon.awssdk.crt:aws-crt", version.ref = "crt-java-version" }
1917

2018
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin-version"}
21-
kotlin-test-junit5 = { module = "org.jetbrains.kotlin:kotlin-test-junit5", version.ref = "kotlin-version" }
2219

2320
kotlinx-coroutines-debug = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-debug", version.ref = "coroutines-version" }
2421
kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines-version" }
2522
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines-version" }
2623
kotlinx-coroutines-jdk8 = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8", version.ref = "coroutines-version" }
2724

28-
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit-version" }
29-
junit-jupiter-params = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "junit-version" }
30-
3125
mockserver-netty = { module = "org.mock-server:mockserver-netty", version.ref = "mock-server-version" }
3226

3327
[plugins]

0 commit comments

Comments
 (0)