File tree 1 file changed +3
-4
lines changed
src/test/kotlin/org/springdoc/openapi/gradle/plugin
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ class OpenApiGradlePluginTest {
121
121
""" .trimMargin()
122
122
)
123
123
124
- assertEquals(TaskOutcome .SUCCESS , openApiDocsTask(runTheBuild()).outcome)
124
+ assertEquals(TaskOutcome .SUCCESS , openApiDocsTask(runTheBuild(" clean " )).outcome)
125
125
assertOpenApiJsonFile(1 , buildDir = specialOutputDir)
126
126
}
127
127
@@ -400,8 +400,7 @@ class OpenApiGradlePluginTest {
400
400
assertOpenApiJsonFile(1 )
401
401
402
402
// Rerunning the build does not regenerate the OpenAPI file
403
- // TODO escape failing test for now
404
- // assertEquals(TaskOutcome.UP_TO_DATE, openApiDocsTask(runTheBuild()).outcome)
403
+ assertEquals(TaskOutcome .UP_TO_DATE , openApiDocsTask(runTheBuild()).outcome)
405
404
assertOpenApiJsonFile(1 )
406
405
}
407
406
@@ -444,7 +443,7 @@ class OpenApiGradlePluginTest {
444
443
private fun runTheBuild (vararg additionalArguments : String = emptyArray()) =
445
444
GradleRunner .create()
446
445
.withProjectDir(projectTestDir)
447
- .withArguments(" clean " , " generateOpenApiDocs" , * additionalArguments )
446
+ .withArguments(* additionalArguments , " generateOpenApiDocs" )
448
447
.withPluginClasspath()
449
448
.build()
450
449
You can’t perform that action at this time.
0 commit comments