mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 03:15:32 -04:00
System line seperator now being used in JUnit test
This commit is contained in:
parent
9cb8e153bf
commit
7aba3ac941
@ -1232,7 +1232,7 @@ public class XMLTest {
|
|||||||
for (int numRead; (numRead = in.read(buffer, 0, buffer.length)) > 0; ) {
|
for (int numRead; (numRead = in.read(buffer, 0, buffer.length)) > 0; ) {
|
||||||
expected.append(buffer, 0, numRead);
|
expected.append(buffer, 0, numRead);
|
||||||
}
|
}
|
||||||
assertEquals(expected.toString(), actualString);
|
assertEquals(expected.toString().replaceAll("\\n|\\r\\n", System.getProperty("line.separator")), actualString);
|
||||||
} finally {
|
} finally {
|
||||||
if (xmlStream != null) {
|
if (xmlStream != null) {
|
||||||
xmlStream.close();
|
xmlStream.close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user