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

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


The following commit(s) were added to refs/heads/main by this push:
     new f5e957011bd Fix SimpleTest on Windows (#11623)
f5e957011bd is described below

commit f5e957011bdf526be67e5024afe85920848cde26
Author: Aurélien Pupier <apup...@redhat.com>
AuthorDate: Mon Oct 2 17:22:46 2023 +0200

    Fix SimpleTest on Windows (#11623)
    
    Signed-off-by: Aurélien Pupier <apup...@redhat.com>
---
 .../apache/camel/language/simple/SimpleTest.java   | 42 +++++++++++-----------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git 
a/core/camel-core/src/test/java/org/apache/camel/language/simple/SimpleTest.java
 
b/core/camel-core/src/test/java/org/apache/camel/language/simple/SimpleTest.java
index 7a550ecfc6a..b61f2c2e500 100644
--- 
a/core/camel-core/src/test/java/org/apache/camel/language/simple/SimpleTest.java
+++ 
b/core/camel-core/src/test/java/org/apache/camel/language/simple/SimpleTest.java
@@ -1976,13 +1976,13 @@ public class SimpleTest extends LanguageTestSupport {
 
         StringBuilder expectedJson = new StringBuilder();
         expectedJson.append("{");
-        expectedJson.append(System.lineSeparator());
+        expectedJson.append("\n");
         expectedJson.append("\t\"firstName\": \"foo\",");
-        expectedJson.append(System.lineSeparator());
+        expectedJson.append("\n");
         expectedJson.append("\t\"lastName\": \"bar\"");
-        expectedJson.append(System.lineSeparator());
+        expectedJson.append("\n");
         expectedJson.append("}");
-        expectedJson.append(System.lineSeparator());
+        expectedJson.append("\n");
 
         exchange.getIn().setBody("{\"firstName\": \"foo\", \"lastName\": 
\"bar\"}");
         assertExpression("${prettyBody}", expectedJson.toString());
@@ -1991,25 +1991,25 @@ public class SimpleTest extends LanguageTestSupport {
 
         expectedJson = new StringBuilder();
         expectedJson.append("[");
-        expectedJson.append(System.lineSeparator());
+        expectedJson.append("\n");
         expectedJson.append("\t{");
-        expectedJson.append(System.lineSeparator());
+        expectedJson.append("\n");
         expectedJson.append("\t\t\"firstName\": \"foo\",");
-        expectedJson.append(System.lineSeparator());
+        expectedJson.append("\n");
         expectedJson.append("\t\t\"lastName\": \"bar\"");
-        expectedJson.append(System.lineSeparator());
+        expectedJson.append("\n");
         expectedJson.append("\t},");
-        expectedJson.append(System.lineSeparator());
+        expectedJson.append("\n");
         expectedJson.append("\t{");
-        expectedJson.append(System.lineSeparator());
+        expectedJson.append("\n");
         expectedJson.append("\t\t\"firstName\": \"foo\",");
-        expectedJson.append(System.lineSeparator());
+        expectedJson.append("\n");
         expectedJson.append("\t\t\"lastName\": \"bar\"");
-        expectedJson.append(System.lineSeparator());
+        expectedJson.append("\n");
         expectedJson.append("\t}");
-        expectedJson.append(System.lineSeparator());
+        expectedJson.append("\n");
         expectedJson.append("]");
-        expectedJson.append(System.lineSeparator());
+        expectedJson.append("\n");
 
         exchange.getIn()
                 .setBody("[{\"firstName\": \"foo\", \"lastName\": 
\"bar\"},{\"firstName\": \"foo\", \"lastName\": \"bar\"}]");
@@ -2023,19 +2023,19 @@ public class SimpleTest extends LanguageTestSupport {
     public void testXMLPrettyPrint() throws Exception {
         StringBuilder expectedXml = new StringBuilder();
         expectedXml.append("<person>");
-        expectedXml.append(System.lineSeparator());
+        expectedXml.append("\n");
         expectedXml.append("  <firstName>");
-        expectedXml.append(System.lineSeparator());
+        expectedXml.append("\n");
         expectedXml.append("    foo");
-        expectedXml.append(System.lineSeparator());
+        expectedXml.append("\n");
         expectedXml.append("  </firstName>");
-        expectedXml.append(System.lineSeparator());
+        expectedXml.append("\n");
         expectedXml.append("  <lastName>");
-        expectedXml.append(System.lineSeparator());
+        expectedXml.append("\n");
         expectedXml.append("    bar");
-        expectedXml.append(System.lineSeparator());
+        expectedXml.append("\n");
         expectedXml.append("  </lastName>");
-        expectedXml.append(System.lineSeparator());
+        expectedXml.append("\n");
         expectedXml.append("</person>");
 
         
exchange.getIn().setBody("<person><firstName>foo</firstName><lastName>bar</lastName></person>");

Reply via email to