Merge pull request #782 from mureinik/XMLTest-windows

Fix XMLTest.testIndentComplicatedJsonObjectWithArrayAndWithConfig() for Windows - in the test
This commit is contained in:
Sean Leary 2023-10-08 17:00:25 -05:00 committed by GitHub
commit bc09f90e90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1239,7 +1239,8 @@ public class XMLTest {
for (int numRead; (numRead = in.read(buffer, 0, buffer.length)) > 0; ) {
expected.append(buffer, 0, numRead);
}
assertEquals(expected.toString(), actualString.replaceAll("\\n|\\r\\n", System.getProperty("line.separator")));
assertEquals(expected.toString().replaceAll("\\n|\\r\\n", System.lineSeparator()),
actualString.replaceAll("\\n|\\r\\n", System.lineSeparator()));
} finally {
if (xmlStream != null) {
xmlStream.close();