System line seperator now being used in JUnit test

This commit is contained in:
Dean 2022-10-10 11:09:42 +01:00
parent 9cb8e153bf
commit 7aba3ac941
No known key found for this signature in database
GPG Key ID: B0FA03846A25C037

View File

@ -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();