@@ -63,7 +63,7 @@ public void throwExceptionWhenExtractCoverageFromJacocoAndNoLineTag() {
63
63
new JacocoParser ("LINE" ).get (filePath );
64
64
Assert .fail ("Where is my exception?" );
65
65
} catch (Exception e ) {
66
- String messageWithoutAbsolutePath = e .getMessage ().replace (filePath , "FILE_PATH" );
66
+ String messageWithoutAbsolutePath = e .getMessage ().replace (filePath , "FILE_PATH" ). replace ( " \r " , "" ). trim () ;
67
67
Assert .assertEquals (
68
68
"Strange Jacoco report!\n " +
69
69
"File path: FILE_PATH\n " +
@@ -86,7 +86,7 @@ public void throwExceptionWhenExtractCoverageFromJacocoAndMissedNotNumber() {
86
86
new JacocoParser ("LINE" ).get (filePath );
87
87
Assert .fail ("Where is my exception?" );
88
88
} catch (Exception e ) {
89
- String messageWithoutAbsolutePath = e .getMessage ().replace (filePath , "FILE_PATH" );
89
+ String messageWithoutAbsolutePath = e .getMessage ().replace (filePath , "FILE_PATH" ). replace ( " \r " , "" ). trim () ;
90
90
Assert .assertEquals (
91
91
"Strange Jacoco report!\n " +
92
92
"File path: FILE_PATH\n " +
@@ -110,7 +110,7 @@ public void throwExceptionWhenExtractCoverageFromJacocoAndCoveredNotNumber() {
110
110
new JacocoParser ("LINE" ).get (filePath );
111
111
Assert .fail ("Where is my exception?" );
112
112
} catch (Exception e ) {
113
- String messageWithoutAbsolutePath = e .getMessage ().replace (filePath , "FILE_PATH" );
113
+ String messageWithoutAbsolutePath = e .getMessage ().replace (filePath , "FILE_PATH" ). replace ( " \r " , "" ). trim () ;
114
114
Assert .assertEquals (
115
115
"Strange Jacoco report!\n " +
116
116
"File path: FILE_PATH\n " +
0 commit comments