File tree Expand file tree Collapse file tree 17 files changed +40
-35
lines changed
restdocs-api-spec-gradle-plugin
src/test/kotlin/com/epages/restdocs/apispec/gradle
restdocs-api-spec-jsonschema
restdocs-api-spec-mockmvc
restdocs-api-spec-openapi-generator
restdocs-api-spec-openapi3-generator
restdocs-api-spec-postman-generator
restdocs-api-spec-restassured
restdocs-api-spec-webtestclient
src/test/kotlin/com/epages/restdocs/apispec
restdocs-api-spec-sample-web-test-client Expand file tree Collapse file tree 17 files changed +40
-35
lines changed Original file line number Diff line number Diff line change @@ -62,10 +62,10 @@ allprojects {
6262
6363subprojects {
6464
65- val jacksonVersion by extra { " 2.12 .2" }
66- val springBootVersion by extra { " 3.2.0 " }
65+ val jacksonVersion by extra { " 2.19 .2" }
66+ val springBootVersion by extra { " 3.5.7 " }
6767 val springRestDocsVersion by extra { " 3.0.5" }
68- val junitVersion by extra { " 5.4 .2" }
68+ val junitVersion by extra { " 5.12 .2" }
6969 val disabledKtlintRules by extra { arrayOf(" max-line-length" ) }
7070
7171 tasks.withType<KotlinCompile > {
Original file line number Diff line number Diff line change @@ -56,8 +56,9 @@ dependencies {
5656 implementation(" com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion " )
5757
5858 testImplementation(" org.junit.jupiter:junit-jupiter-engine:$junitVersion " )
59- testImplementation(" org.junit-pioneer:junit-pioneer:0.3.0" )
60- testImplementation(" org.assertj:assertj-core:3.10.0" )
59+ testRuntimeOnly(" org.junit.platform:junit-platform-launcher" )
60+ testImplementation(" org.junit-pioneer:junit-pioneer:2.3.0" )
61+ testImplementation(" org.assertj:assertj-core:3.27.6" )
6162
6263 testImplementation(" com.jayway.jsonpath:json-path:2.9.0" )
6364
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import org.gradle.testkit.runner.GradleRunner
88import org.gradle.testkit.runner.TaskOutcome
99import org.junit.jupiter.api.BeforeEach
1010import org.junit.jupiter.api.Test
11- import org.junitpioneer .jupiter.TempDirectory
11+ import org.junit .jupiter.api.io.TempDir
1212import java.io.File
1313import java.nio.file.Files
1414import java.nio.file.Path
@@ -35,13 +35,15 @@ abstract class ApiSpecTaskTest {
3535
3636 abstract val taskName: String
3737
38+ @TempDir
39+ @JvmField
40+ var tempDir: Path ? = null
41+
3842 @BeforeEach
39- fun init (
40- @TempDirectory.TempDir tempDir : Path ,
41- ) {
43+ fun init () {
4244 with (tempDir) {
43- testProjectDir = tempDir
44- buildFile = resolve(" build.gradle" ).toFile()
45+ testProjectDir = tempDir!!
46+ buildFile = this !! . resolve(" build.gradle" ).toFile()
4547 snippetsFolder = resolve(" build/generated-snippets" ).toFile().apply { mkdirs() }
4648 outputFolder = resolve(" build/api-spec" ).toFile()
4749
Original file line number Diff line number Diff line change @@ -2,10 +2,7 @@ package com.epages.restdocs.apispec.gradle
22
33import org.assertj.core.api.BDDAssertions.then
44import org.junit.jupiter.api.Test
5- import org.junit.jupiter.api.extension.ExtendWith
6- import org.junitpioneer.jupiter.TempDirectory
75
8- @ExtendWith(TempDirectory ::class )
96class PostmanTaskTest : ApiSpecTaskTest () {
107 override val taskName = " postman"
118
Original file line number Diff line number Diff line change @@ -4,10 +4,8 @@ import com.jayway.jsonpath.JsonPath
44import org.assertj.core.api.BDDAssertions.then
55import org.junit.jupiter.api.Test
66import org.junit.jupiter.api.extension.ExtendWith
7- import org.junitpioneer.jupiter.TempDirectory
87import java.lang.Boolean.FALSE
98
10- @ExtendWith(TempDirectory ::class )
119class RestdocsOpenApi3TaskTest : RestdocsOpenApiTaskTestBase () {
1210 override val taskName = " openapi3"
1311
Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ package com.epages.restdocs.apispec.gradle
33import com.jayway.jsonpath.JsonPath
44import org.assertj.core.api.BDDAssertions.then
55import org.junit.jupiter.api.extension.ExtendWith
6- import org.junitpioneer.jupiter.TempDirectory
76
8- @ExtendWith(TempDirectory ::class )
97class RestdocsOpenApiTaskTest : RestdocsOpenApiTaskTestBase () {
108 override val taskName = " openapi"
119
Original file line number Diff line number Diff line change @@ -21,9 +21,10 @@ dependencies {
2121 implementation(" com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion " )
2222
2323 testImplementation(" org.junit.jupiter:junit-jupiter-engine:$junitVersion " )
24+ testRuntimeOnly(" org.junit.platform:junit-platform-launcher" )
2425 testImplementation(" com.github.java-json-tools:json-schema-validator:2.2.10" )
2526 testImplementation(" com.jayway.jsonpath:json-path:2.9.0" )
26- testImplementation(" org.assertj:assertj-core:3.10.0 " )
27+ testImplementation(" org.assertj:assertj-core:3.27.6 " )
2728 testImplementation(" javax.validation:validation-api:2.0.1.Final" )
2829}
2930
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ dependencies {
2323 }
2424 testImplementation(" org.springframework.boot:spring-boot-starter-validation:$springBootVersion " )
2525 testImplementation(" org.junit.jupiter:junit-jupiter-engine:$junitVersion " )
26- testImplementation(" org.junit-pioneer:junit-pioneer:0.3.0" )
26+ testRuntimeOnly(" org.junit.platform:junit-platform-launcher" )
27+ testImplementation(" org.junit-pioneer:junit-pioneer:2.3.0" )
2728 testImplementation(" org.springframework.boot:spring-boot-starter-hateoas:$springBootVersion " )
2829}
2930
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ dependencies {
2121
2222 testImplementation(" io.swagger:swagger-parser:1.0.75" )
2323 testImplementation(" org.junit.jupiter:junit-jupiter-engine:$junitVersion " )
24- testImplementation(" org.assertj:assertj-core:3.10.0" )
24+ testRuntimeOnly(" org.junit.platform:junit-platform-launcher" )
25+ testImplementation(" org.assertj:assertj-core:3.27.6" )
2526}
2627
2728publishing {
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ dependencies {
2323
2424 testImplementation(" io.swagger.parser.v3:swagger-parser:2.1.34" )
2525 testImplementation(" org.junit.jupiter:junit-jupiter-engine:$junitVersion " )
26- testImplementation(" org.assertj:assertj-core:3.10.0" )
26+ testRuntimeOnly(" org.junit.platform:junit-platform-launcher" )
27+ testImplementation(" org.assertj:assertj-core:3.27.6" )
2728
2829 testImplementation(" com.jayway.jsonpath:json-path:2.9.0" )
2930}
You can’t perform that action at this time.
0 commit comments