Skip to content

Commit 8acca1f

Browse files
committed
JOHNZON-422 MapperConverterExceptionsTest fails on Windodws due to wrong line break
There are 2 of those classes
1 parent 615f31f commit 8acca1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

6060
public ExceptionAsserts assertMessage(final String expected) {
61-
assertEquals(expected, throwable.getMessage());
61+
assertEquals(expected.replace("\r\n", "\n"), throwable.getMessage().replace("\r\n", "\n"));
6262
return this;
6363
}
6464

0 commit comments

Comments
 (0)