File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/test/kotlin/org/springdoc/openapi/gradle/plugin Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ class OpenApiGradlePluginTest {
121121 """ .trimMargin()
122122 )
123123
124- assertEquals(TaskOutcome .SUCCESS , openApiDocsTask(runTheBuild()).outcome)
124+ assertEquals(TaskOutcome .SUCCESS , openApiDocsTask(runTheBuild(" clean " )).outcome)
125125 assertOpenApiJsonFile(1 , buildDir = specialOutputDir)
126126 }
127127
@@ -400,8 +400,7 @@ class OpenApiGradlePluginTest {
400400 assertOpenApiJsonFile(1 )
401401
402402 // 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)
405404 assertOpenApiJsonFile(1 )
406405 }
407406
@@ -444,7 +443,7 @@ class OpenApiGradlePluginTest {
444443 private fun runTheBuild (vararg additionalArguments : String = emptyArray()) =
445444 GradleRunner .create()
446445 .withProjectDir(projectTestDir)
447- .withArguments(" clean " , " generateOpenApiDocs" , * additionalArguments )
446+ .withArguments(* additionalArguments , " generateOpenApiDocs" )
448447 .withPluginClasspath()
449448 .build()
450449
You can’t perform that action at this time.
0 commit comments