aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2019-10-13 09:29:36 +0000
committerAndreas Beeker <kiwiwings@apache.org>2019-10-13 09:29:36 +0000
commit8ef4c1bf331ccbefe54e225748e7c11a467a68e7 (patch)
tree36ae96264ee7854241c0cedf25cf68c02c8a3ea7 /src
parent63fb65eb1b30cc1c64552f2175aadde7d96816b4 (diff)
downloadpoi-8ef4c1bf331ccbefe54e225748e7c11a467a68e7.tar.gz
poi-8ef4c1bf331ccbefe54e225748e7c11a467a68e7.zip
Fix line.separator issues
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1868386 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/testcases/org/apache/poi/ddf/TestEscherBSERecord.java2
-rw-r--r--src/testcases/org/apache/poi/ddf/TestEscherContainerRecord.java5
-rw-r--r--src/testcases/org/apache/poi/ddf/TestEscherOptRecord.java1
3 files changed, 6 insertions, 2 deletions
diff --git a/src/testcases/org/apache/poi/ddf/TestEscherBSERecord.java b/src/testcases/org/apache/poi/ddf/TestEscherBSERecord.java
index 5cf82068a7..8b47a299f4 100644
--- a/src/testcases/org/apache/poi/ddf/TestEscherBSERecord.java
+++ b/src/testcases/org/apache/poi/ddf/TestEscherBSERecord.java
@@ -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 );
}
diff --git a/src/testcases/org/apache/poi/ddf/TestEscherContainerRecord.java b/src/testcases/org/apache/poi/ddf/TestEscherContainerRecord.java
index 350f99d9da..83244e8273 100644
--- a/src/testcases/org/apache/poi/ddf/TestEscherContainerRecord.java
+++ b/src/testcases/org/apache/poi/ddf/TestEscherContainerRecord.java
@@ -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());
}
diff --git a/src/testcases/org/apache/poi/ddf/TestEscherOptRecord.java b/src/testcases/org/apache/poi/ddf/TestEscherOptRecord.java
index 5a293a293c..96c57e6ec6 100644
--- a/src/testcases/org/apache/poi/ddf/TestEscherOptRecord.java
+++ b/src/testcases/org/apache/poi/ddf/TestEscherOptRecord.java
@@ -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());
}