This is an automated email from the ASF dual-hosted git repository.
struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/johnzon.git
The following commit(s) were added to refs/heads/master by this push:
new d5363712 JOHNZON-422 MapperConverterExceptionsTest fails on Windodws
due to wrong line break
d5363712 is described below
commit d5363712423b7addb01d110b7149ea6083fc037d
Author: Mark Struberg <[email protected]>
AuthorDate: Tue Feb 10 12:19:32 2026 +0100
JOHNZON-422 MapperConverterExceptionsTest fails on Windodws due to wrong
line break
---
.../src/test/java/org/apache/johnzon/jsonb/ExceptionAsserts.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/johnzon-jsonb/src/test/java/org/apache/johnzon/jsonb/ExceptionAsserts.java
b/johnzon-jsonb/src/test/java/org/apache/johnzon/jsonb/ExceptionAsserts.java
index f1bd3645..e97bffa3 100644
--- a/johnzon-jsonb/src/test/java/org/apache/johnzon/jsonb/ExceptionAsserts.java
+++ b/johnzon-jsonb/src/test/java/org/apache/johnzon/jsonb/ExceptionAsserts.java
@@ -62,7 +62,7 @@ public class ExceptionAsserts {
}
public ExceptionAsserts assertMessage(final String expected) {
- assertEquals(expected, throwable.getMessage());
+ assertEquals(expected.replace("\r\n", "\n"),
throwable.getMessage().replace("\r\n", "\n"));
return this;
}