Skip to content

Commit 673b2b1

Browse files
EfxRulesTranslatorV2Test: Fix unit tests on Windows
The "schematrons.json" were indicated as different when running on Windows. Stripping the trailing whitespace avoids this problem.
1 parent 694a7bc commit 673b2b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/eu/europa/ted/efx/sdk2/EfxRulesTranslatorV2Test.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ private void assertAllOutputs(String testName, Map<String, String> outputFiles)
104104
if (filename.endsWith(".sch")) {
105105
assertValidXml(actualContent, filename);
106106
}
107-
assertEquals(expectedContent, actualContent, "Content mismatch in " + filename);
107+
assertEquals(expectedContent.stripTrailing(), actualContent.stripTrailing(),
108+
"Content mismatch in " + filename);
108109
}
109110
}
110111

0 commit comments

Comments
 (0)