This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch camel-3.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.x by this push:
new 36c5278f7bc Regen for commit cda5c712c62632609093a96f22a8731a58aad915
36c5278f7bc is described below
commit 36c5278f7bcf2348df29c56ebb616229fb90a9ea
Author: davsclaus <[email protected]>
AuthorDate: Wed Jan 18 06:34:04 2023 +0000
Regen for commit cda5c712c62632609093a96f22a8731a58aad915
Signed-off-by: GitHub <[email protected]>
---
...YamlGeneratorV3SimpleWithRoutesDescriptionTest.java | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git
a/tooling/openapi-rest-dsl-generator/src/test/java/org/apache/camel/generator/openapi/RestDslYamlGeneratorV3SimpleWithRoutesDescriptionTest.java
b/tooling/openapi-rest-dsl-generator/src/test/java/org/apache/camel/generator/openapi/RestDslYamlGeneratorV3SimpleWithRoutesDescriptionTest.java
index bf605476cdb..d3585b62e1b 100644
---
a/tooling/openapi-rest-dsl-generator/src/test/java/org/apache/camel/generator/openapi/RestDslYamlGeneratorV3SimpleWithRoutesDescriptionTest.java
+++
b/tooling/openapi-rest-dsl-generator/src/test/java/org/apache/camel/generator/openapi/RestDslYamlGeneratorV3SimpleWithRoutesDescriptionTest.java
@@ -16,6 +16,12 @@
*/
package org.apache.camel.generator.openapi;
+import java.io.InputStream;
+import java.net.URI;
+import java.nio.charset.StandardCharsets;
+import java.nio.file.Files;
+import java.nio.file.Paths;
+
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.apicurio.datamodels.Library;
@@ -25,12 +31,6 @@ import org.apache.camel.impl.DefaultCamelContext;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
-import java.io.InputStream;
-import java.net.URI;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
-import java.nio.file.Paths;
-
import static org.assertj.core.api.Assertions.assertThat;
public class RestDslYamlGeneratorV3SimpleWithRoutesDescriptionTest {
@@ -41,7 +41,8 @@ public class
RestDslYamlGeneratorV3SimpleWithRoutesDescriptionTest {
public static void readOpenApiDoc() throws Exception {
final ObjectMapper mapper = new ObjectMapper();
try (InputStream is
- =
RestDslYamlGeneratorV3SimpleWithRoutesDescriptionTest.class.getResourceAsStream("openapi-spec-description.json"))
{
+ = RestDslYamlGeneratorV3SimpleWithRoutesDescriptionTest.class
+ .getResourceAsStream("openapi-spec-description.json"))
{
final JsonNode node = mapper.readTree(is);
document = (OasDocument) Library.readDocument(node);
}
@@ -52,7 +53,8 @@ public class
RestDslYamlGeneratorV3SimpleWithRoutesDescriptionTest {
final CamelContext context = new DefaultCamelContext();
final String yaml =
RestDslGenerator.toYaml(document).generate(context, true);
- final URI file =
RestDslGeneratorTest.class.getResource("/OpenApiV3PetstoreSimpleWithRoutesDescriptionYaml.txt").toURI();
+ final URI file
+ =
RestDslGeneratorTest.class.getResource("/OpenApiV3PetstoreSimpleWithRoutesDescriptionYaml.txt").toURI();
final String expectedContent = new
String(Files.readAllBytes(Paths.get(file)), StandardCharsets.UTF_8);
assertThat(yaml).isEqualTo(expectedContent);