diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/AbstractIntegrationTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/AbstractIntegrationTest.java index 81c4978e787..0fcc7650f22 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/AbstractIntegrationTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/AbstractIntegrationTest.java @@ -17,10 +17,11 @@ package org.openapitools.codegen; +import java.nio.file.Files; +import java.util.stream.Collectors; import io.swagger.v3.oas.models.OpenAPI; import org.openapitools.codegen.testutils.IntegrationTestPathsConfig; import org.testng.annotations.Test; -import org.testng.reporters.Files; import java.io.IOException; import java.util.HashMap; @@ -51,7 +52,7 @@ public abstract class AbstractIntegrationTest { IntegrationTestPathsConfig integrationTestPathsConfig = getIntegrationTestPathsConfig(); - String specContent = Files.readFile(integrationTestPathsConfig.getSpecPath().toFile()); + String specContent = Files.lines(integrationTestPathsConfig.getSpecPath()).collect(Collectors.joining("\n")); OpenAPI openAPI = TestUtils.parseContent(specContent); diff --git a/pom.xml b/pom.xml index 6be189ec94a..6dc2ca09c4e 100644 --- a/pom.xml +++ b/pom.xml @@ -1,11 +1,13 @@ - + org.sonatype.oss oss-parent 5 - - + + 4.0.0 org.openapitools @@ -505,7 +507,8 @@ false min - ${project.basedir}${file.separator}spotbugs-exclude.xml + + ${project.basedir}${file.separator}spotbugs-exclude.xml @@ -1253,10 +1256,10 @@ 3.1.12.2 io.swagger.parser.v3 2.1.22 - 7.5 + 7.10.2 1.34 3.4.3 1.12 1.0-beta-2 - + \ No newline at end of file