Fix line.separator issues

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1868384 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2019-10-13 09:08:24 +00:00
parent a17cdc8458
commit 63fb65eb1b
10 changed files with 10 additions and 0 deletions

View File

@ -34,6 +34,7 @@ public final class TestEscherBoolProperty {
"\t, flags: 0x17f /* */ \n" +
"\t, value: 1\n" +
"}";
expected = expected.replace("\n", System.getProperty("line.separator"));
assertEquals(expected, p.toString());
}
}

View File

@ -76,6 +76,7 @@ public final class TestEscherChildAnchorRecord {
"\t, x2: 3\n" +
"\t, y2: 4\n" +
"}";
expected = expected.replace("\n", System.getProperty("line.separator"));
assertEquals( expected, createRecord().toString() );
}

View File

@ -88,6 +88,7 @@ public class TestEscherClientAnchorRecord {
"\t, dy2: 66 /* 0x0042 */\n" +
"\t, remainingData: \"/90=\"\n" +
"}";
expected = expected.replace("\n", System.getProperty("line.separator"));
assertEquals( expected, createRecord().toString() );
}

View File

@ -62,6 +62,7 @@ public class TestEscherClientDataRecord {
"\t, recordSize: 8\n" +
"\t, remainingData: \"\"\n" +
"}";
expected = expected.replace("\n", System.getProperty("line.separator"));
assertEquals( expected, createRecord().toString() );
}

View File

@ -68,6 +68,7 @@ public final class TestEscherDgRecord {
"\t, lastMSOSPID: 1025 /* 0x00000401 */\n" +
"\t, drawingGroupId: 1\n" +
"}";
expected = expected.replace("\n", System.getProperty("line.separator"));
assertEquals( expected, createRecord().toString() );
}

View File

@ -86,6 +86,7 @@ public final class TestEscherDggRecord {
"\t, numShapesSaved: 2\n" +
"\t, drawingsSaved: 1\n" +
"}";
expected = expected.replace("\n", System.getProperty("line.separator"));
assertEquals( expected, createRecord().toString() );
}

View File

@ -68,6 +68,7 @@ public class TestEscherSpRecord {
"\t, shapeId: 1024 /* 0x00000400 */\n" +
"\t, flags: 0x5 /* GROUP | PATRIARCH */ \n" +
"}";
expected = expected.replace("\n", System.getProperty("line.separator"));
assertEquals( expected, createRecord().toString() );
}

View File

@ -75,6 +75,7 @@ public final class TestEscherSpgrRecord {
"\t, rectX2: 3\n" +
"\t, rectY2: 4\n" +
"}";
expected = expected.replace("\n", System.getProperty("line.separator"));
assertEquals( expected, createRecord().toString() );
}

View File

@ -75,6 +75,7 @@ public final class TestEscherSplitMenuColorsRecord {
"\t, color3: 2\n" +
"\t, color4: 1\n" +
"}";
expected = expected.replace("\n", System.getProperty("line.separator"));
assertEquals( expected, createRecord().toString() );
}

View File

@ -159,6 +159,7 @@ public final class TestUnknownEscherRecord {
"\t, recordSize: 8\n" +
"\t, data: \"\"\n" +
"}";
expected = expected.replace("\n", System.getProperty("line.separator"));
assertEquals(expected, r.toString() );
}
}