From e7f9f71ab31128d8ddc893b2f9da0aace3974bd4 Mon Sep 17 00:00:00 2001 From: frantuma Date: Mon, 16 Oct 2023 11:43:06 +0200 Subject: [PATCH] update dependencies --- .../src/test/java/io/swagger/parser/SwaggerParserTest.java | 4 ++-- pom.xml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/swagger-parser/src/test/java/io/swagger/parser/SwaggerParserTest.java b/modules/swagger-parser/src/test/java/io/swagger/parser/SwaggerParserTest.java index 8005e3d50e..17b7767095 100644 --- a/modules/swagger-parser/src/test/java/io/swagger/parser/SwaggerParserTest.java +++ b/modules/swagger-parser/src/test/java/io/swagger/parser/SwaggerParserTest.java @@ -10,6 +10,7 @@ import java.io.File; import java.io.IOException; import java.math.BigDecimal; +import java.nio.file.Files; import java.util.*; import io.swagger.models.*; @@ -18,7 +19,6 @@ import org.apache.commons.io.FileUtils; import org.testng.Assert; import org.testng.annotations.Test; -import org.testng.reporters.Files; import com.fasterxml.jackson.databind.JsonNode; @@ -1586,7 +1586,7 @@ public void readingSpecStringShouldNotOverQuotingStringExample() throws Exceptio @Test(description = "A string example should not be over quoted when parsing a yaml node") public void readingSpecNodeShouldNotOverQuotingStringExample() throws Exception { - String yaml = Files.readFile(new File("src/test/resources/over-quoted-example.yaml")); + String yaml = new String(Files.readAllBytes(new File("src/test/resources/over-quoted-example.yaml").toPath()), "UTF-8"); JsonNode rootNode = Yaml.mapper().readValue(yaml, JsonNode.class); SwaggerParser parser = new SwaggerParser(); Swagger swagger = parser.read(rootNode, true); diff --git a/pom.xml b/pom.xml index 8a2fd654ca..39c3923ede 100644 --- a/pom.xml +++ b/pom.xml @@ -393,9 +393,9 @@ 2.11.0 - 2.0 - 1.7.36 - 1.6.11 + 2.2 + 2.0.9 + 1.6.12 4.13.2 6.9.6 1.19