Skip to content

Commit bc09f90

Browse files
authored
Merge pull request #782 from mureinik/XMLTest-windows
Fix XMLTest.testIndentComplicatedJsonObjectWithArrayAndWithConfig() for Windows - in the test
2 parents 79af389 + 4c8cac2 commit bc09f90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/org/json/junit/XMLTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,8 @@ public void testIndentComplicatedJsonObjectWithArrayAndWithConfig(){
12391239
for (int numRead; (numRead = in.read(buffer, 0, buffer.length)) > 0; ) {
12401240
expected.append(buffer, 0, numRead);
12411241
}
1242-
assertEquals(expected.toString(), actualString.replaceAll("\\n|\\r\\n", System.getProperty("line.separator")));
1242+
assertEquals(expected.toString().replaceAll("\\n|\\r\\n", System.lineSeparator()),
1243+
actualString.replaceAll("\\n|\\r\\n", System.lineSeparator()));
12431244
} finally {
12441245
if (xmlStream != null) {
12451246
xmlStream.close();

0 commit comments

Comments
 (0)