This is an automated email from the ASF dual-hosted git repository.
struberg pushed a commit to branch johnzon-1.2.x
in repository https://gitbox.apache.org/repos/asf/johnzon.git
The following commit(s) were added to refs/heads/johnzon-1.2.x by this push:
new 8acca1f7 JOHNZON-422 MapperConverterExceptionsTest fails on Windodws
due to wrong line break
8acca1f7 is described below
commit 8acca1f7b20830911edf8dc05eb000d3be4fef10
Author: Mark Struberg <[email protected]>
AuthorDate: Tue Feb 10 13:14:22 2026 +0100
JOHNZON-422 MapperConverterExceptionsTest fails on Windodws due to wrong
line break
There are 2 of those classes
---
.../src/test/java/org/apache/johnzon/mapper/ExceptionAsserts.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/johnzon-mapper/src/test/java/org/apache/johnzon/mapper/ExceptionAsserts.java
b/johnzon-mapper/src/test/java/org/apache/johnzon/mapper/ExceptionAsserts.java
index 8cb1f5e4..0f1e113d 100644
---
a/johnzon-mapper/src/test/java/org/apache/johnzon/mapper/ExceptionAsserts.java
+++
b/johnzon-mapper/src/test/java/org/apache/johnzon/mapper/ExceptionAsserts.java
@@ -58,7 +58,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;
}