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 d7c24c64502 Fix Jackson test on windows normalizing end of line in 
comparison (#18309)
d7c24c64502 is described below

commit d7c24c64502eaf83eed31d34ade1e8b842b40050
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Sun Jun 8 15:18:55 2025 +0200

    Fix Jackson test on windows normalizing end of line in comparison (#18309)
    
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 components/camel-jackson/pom.xml                                    | 6 ++++++
 .../component/jackson/converter/JacksonJSonNodeConverterTest.java   | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/components/camel-jackson/pom.xml b/components/camel-jackson/pom.xml
index 91930574f9f..7390f33e529 100644
--- a/components/camel-jackson/pom.xml
+++ b/components/camel-jackson/pom.xml
@@ -69,5 +69,11 @@
             <version>${jsonassert-version}</version>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>org.assertj</groupId>
+            <artifactId>assertj-core</artifactId>
+            <version>${assertj-version}</version>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 </project>
diff --git 
a/components/camel-jackson/src/test/java/org/apache/camel/component/jackson/converter/JacksonJSonNodeConverterTest.java
 
b/components/camel-jackson/src/test/java/org/apache/camel/component/jackson/converter/JacksonJSonNodeConverterTest.java
index 03c74ef4a22..8290a5bd917 100644
--- 
a/components/camel-jackson/src/test/java/org/apache/camel/component/jackson/converter/JacksonJSonNodeConverterTest.java
+++ 
b/components/camel-jackson/src/test/java/org/apache/camel/component/jackson/converter/JacksonJSonNodeConverterTest.java
@@ -33,6 +33,7 @@ import org.apache.camel.test.junit5.CamelTestSupport;
 import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.Test;
 
+import static org.assertj.core.api.Assertions.assertThat;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 
 public class JacksonJSonNodeConverterTest extends CamelTestSupport {
@@ -106,7 +107,7 @@ public class JacksonJSonNodeConverterTest extends 
CamelTestSupport {
         String text = context.getTypeConverter().convertTo(String.class, 
exchange, node);
         assertNotNull(text);
 
-        Assertions.assertEquals("{\n  \"message\" : \"Hello Camel\"\n}", text);
+        assertThat(text).isEqualToNormalizingNewlines("{\n  \"message\" : 
\"Hello Camel\"\n}");
     }
 
     @Test

Reply via email to