Fix line.separator issues

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1868386 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2019-10-13 09:29:36 +00:00
parent 63fb65eb1b
commit 8ef4c1bf33
3 changed files with 6 additions and 2 deletions

View File

@ -107,7 +107,7 @@ public final class TestEscherBSERecord {
"\t, blipRecord: null\n" +
"\t, remainingData: \"\"\n" +
"}";
expected = expected.replace("\n", System.getProperty("line.separator"));
String actual = record.toString();
assertEquals( expected, actual );
}

View File

@ -90,6 +90,7 @@ public final class TestEscherContainerRecord {
"\t, recordSize: 8\n" +
"\t, isContainer: true\n" +
"}";
expected = expected.replace("\n", System.getProperty("line.separator"));
assertEquals(expected, r.toString());
EscherOptRecord r2 = new EscherOptRecord();
@ -119,7 +120,8 @@ public final class TestEscherContainerRecord {
"\t\t}\n" +
"\t]\n" +
"}";
assertEquals(expected, r.toString());
expected = expected.replace("\n", System.getProperty("line.separator"));
assertEquals(expected, r.toString());
r.addChildRecord(r2);
expected =
@ -154,6 +156,7 @@ public final class TestEscherContainerRecord {
"\t\t}\n" +
"\t]\n" +
"}";
expected = expected.replace("\n", System.getProperty("line.separator"));
assertEquals(expected, r.toString());
}

View File

@ -165,6 +165,7 @@ public final class TestEscherOptRecord {
"\t\t, value: 1\n" +
"\t}]\n" +
"}";
expected = expected.replace("\n", System.getProperty("line.separator"));
assertEquals( expected, r.toString());
}