This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 2dd0e47949bcc9875f433da0019ecef178eb5720
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Mon Jan 26 17:33:33 2026 +0000

    (chores): ensure usage of text blocks catalog/camel-route-parser
---
 .../java/org/apache/camel/parser/xml/XmlParseTreeTest.java    | 10 ++++++----
 .../apache/camel/parser/xml/XmlWithPrefixParseTreeTest.java   | 11 ++++++-----
 2 files changed, 12 insertions(+), 9 deletions(-)

diff --git 
a/catalog/camel-route-parser/src/test/java/org/apache/camel/parser/xml/XmlParseTreeTest.java
 
b/catalog/camel-route-parser/src/test/java/org/apache/camel/parser/xml/XmlParseTreeTest.java
index e3827fe6eb8b..0ce39bd391c2 100644
--- 
a/catalog/camel-route-parser/src/test/java/org/apache/camel/parser/xml/XmlParseTreeTest.java
+++ 
b/catalog/camel-route-parser/src/test/java/org/apache/camel/parser/xml/XmlParseTreeTest.java
@@ -65,10 +65,12 @@ public class XmlParseTreeTest {
 
     @Test
     void testXmlTreeWithEmptyRoute() throws Exception {
-        String textTotest = "<camelContext id=\"camel\" 
xmlns=\"http://camel.apache.org/schema/spring\";>\r\n" +
-                            "    <route id=\"a route\">\r\n" +
-                            "    </route>\r\n" +
-                            "</camelContext>\n";
+        String textTotest = """
+                <camelContext id="camel" 
xmlns="http://camel.apache.org/schema/spring";>\r
+                    <route id="a route">\r
+                    </route>\r
+                </camelContext>
+                """;
         File camelFile = new File(tempDir, "testXmlTreeWithEmptyRoute.xml");
         Files.copy(new ByteArrayInputStream(textTotest.getBytes()), 
camelFile.toPath());
         List<CamelNodeDetails> list = XmlRouteParser.parseXmlRouteTree(new 
ByteArrayInputStream(textTotest.getBytes()), "",
diff --git 
a/catalog/camel-route-parser/src/test/java/org/apache/camel/parser/xml/XmlWithPrefixParseTreeTest.java
 
b/catalog/camel-route-parser/src/test/java/org/apache/camel/parser/xml/XmlWithPrefixParseTreeTest.java
index 9cc46c3ace8e..3c4981a207c8 100644
--- 
a/catalog/camel-route-parser/src/test/java/org/apache/camel/parser/xml/XmlWithPrefixParseTreeTest.java
+++ 
b/catalog/camel-route-parser/src/test/java/org/apache/camel/parser/xml/XmlWithPrefixParseTreeTest.java
@@ -67,11 +67,12 @@ public class XmlWithPrefixParseTreeTest {
     @Test
     void testXmlTreeWithEmptyRoute() throws Exception {
         String textTotest
-                = "<camel:camelContext id=\"camel\" 
xmlns=\"http://camel.apache.org/schema/spring\"; 
xmlns:camel=\"http://camel.apache.org/schema/spring\";>\r\n"
-                  +
-                  "    <camel:route id=\"a route\">\r\n" +
-                  "    </camel:route>\r\n" +
-                  "</camel:camelContext>\n";
+                = """
+                        <camel:camelContext id="camel" 
xmlns="http://camel.apache.org/schema/spring"; 
xmlns:camel="http://camel.apache.org/schema/spring";>\r
+                            <camel:route id="a route">\r
+                            </camel:route>\r
+                        </camel:camelContext>
+                        """;
         File camelFile = new File(tempDir, 
"testXmlTreeWithEmptyRoute-withNamespacePrefix.xml");
         Files.copy(new ByteArrayInputStream(textTotest.getBytes()), 
camelFile.toPath());
         List<CamelNodeDetails> list = XmlRouteParser.parseXmlRouteTree(new 
ByteArrayInputStream(textTotest.getBytes()), "",

Reply via email to