Skip to content

Commit d7d89a4

Browse files
committed
Migrated some tests to kotest.
1 parent f3e3107 commit d7d89a4

5 files changed

Lines changed: 164 additions & 207 deletions

File tree

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[versions]
22
# Libraries
33
kotest = "5.5.4"
4+
kotest-spring = "1.1.2"
45
graphql-java = "18.3"
56
graphql-kickstart-spring-boot = "14.1.0"
67
commons-text = "1.10.0"
@@ -23,6 +24,7 @@ tailrocks-junit-conventions = { module = "com.tailrocks.gradle:junit-conventions
2324
kotest-runner-junit = { module = "io.kotest:kotest-runner-junit5", version.ref = "kotest" }
2425
kotest-assertions-core = { module = "io.kotest:kotest-assertions-core", version.ref = "kotest" }
2526
kotest-framework-datatest = { module = "io.kotest:kotest-framework-datatest", version.ref = "kotest" }
27+
kotest-extensions-spring = { module = "io.kotest.extensions:kotest-extensions-spring", version.ref = "kotest-spring" }
2628

2729
[plugins]
2830
test-logger = { id = "com.adarshr.test-logger", version = "3.2.0" }

graphql-datetime-spring-boot-starter/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ dependencies {
66
api(project(":graphql-datetime-spring-boot-autoconfigure"))
77

88
// Spring Boot
9+
api(platform(libs.boms.spring.boot))
910
api("org.springframework.boot:spring-boot-starter-graphql")
1011
}

samples/spring-boot-webmvc/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id("com.adarshr.test-logger")
33
id("io.spring.dependency-management")
44
id("org.springframework.boot")
5+
id("kotest-conventions")
56
}
67

78
the<io.spring.gradle.dependencymanagement.dsl.DependencyManagementExtension>().apply {
@@ -19,4 +20,10 @@ dependencies {
1920
testImplementation("org.springframework.boot:spring-boot-starter-test")
2021

2122
testImplementation(libs.commons.text)
23+
24+
// Kotest
25+
testImplementation(libs.kotest.extensions.spring)
26+
27+
// Jackson
28+
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
2229
}

samples/spring-boot-webmvc/src/test/kotlin/sample/spring/boot/webmvc/SpringBootWebMvcSampleApplicationSpec.kt

Lines changed: 0 additions & 132 deletions
This file was deleted.

0 commit comments

Comments
 (0)