Skip to content

Commit d536371

Browse files
committed
JOHNZON-422 MapperConverterExceptionsTest fails on Windodws due to wrong line break
1 parent b4c953e commit d536371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

johnzon-jsonb/src/test/java/org/apache/johnzon/jsonb/ExceptionAsserts.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public ExceptionAsserts assertCauseChain(final Throwable expected) {
6262
}
6363

6464
public ExceptionAsserts assertMessage(final String expected) {
65-
assertEquals(expected, throwable.getMessage());
65+
assertEquals(expected.replace("\r\n", "\n"), throwable.getMessage().replace("\r\n", "\n"));
6666
return this;
6767
}
6868

0 commit comments

Comments
 (0)