]> source.dussan.org Git - poi.git/commitdiff
update EcherContainerRecord.toString() test case
authorSergey Vladimirov <sergey@apache.org>
Thu, 28 Jul 2011 15:13:37 +0000 (15:13 +0000)
committerSergey Vladimirov <sergey@apache.org>
Thu, 28 Jul 2011 15:13:37 +0000 (15:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1151891 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/ddf/TestEscherContainerRecord.java

index b3637b0f4b907faaf9ff9396ecd5bb89a208c2a9..a2fc0d7b1bbc4565fb75a6116fe622ed7f111f22 100644 (file)
@@ -20,7 +20,6 @@ package org.apache.poi.ddf;
 import java.util.List;
 
 import junit.framework.TestCase;
-
 import org.apache.poi.POIDataSamples;
 import org.apache.poi.util.HexDump;
 import org.apache.poi.util.HexRead;
@@ -95,35 +94,38 @@ public final class TestEscherContainerRecord extends TestCase {
                                   "  numchildren: 1" + nl +
                                   "  children: " + nl +
                                   "   Child 0:" + nl +
-                                  "org.apache.poi.ddf.EscherOptRecord:" + nl +
-                                  "  isContainer: false" + nl +
-                                  "  options: 0x0003" + nl +
-                                  "  recordId: 0xF00B" + nl +
-                                  "  numchildren: 0" + nl +
-                                  "  properties:" + nl;
+                                  "    org.apache.poi.ddf.EscherOptRecord:" + nl +
+                                  "      isContainer: false" + nl +
+                                  "      options: 0x0003" + nl +
+                                  "      recordId: 0xF00B" + nl +
+                                  "      numchildren: 0" + nl +
+                                  "      properties:" + nl +
+                                  "    " + nl;
                assertEquals(expected, r.toString());
 
                r.addChildRecord(r2);
                expected = "org.apache.poi.ddf.EscherContainerRecord (SpContainer):" + nl +
-                                  "  isContainer: true" + nl +
-                                  "  options: 0x000F" + nl +
-                                  "  recordId: 0xF004" + nl +
-                                  "  numchildren: 2" + nl +
-                                  "  children: " + nl +
-                                  "   Child 0:" + nl +
-                                  "org.apache.poi.ddf.EscherOptRecord:" + nl +
-                                  "  isContainer: false" + nl +
-                                  "  options: 0x0003" + nl +
-                                  "  recordId: 0xF00B" + nl +
-                                  "  numchildren: 0" + nl +
-                                  "  properties:" + nl +
-                                  "   Child 1:" + nl +
-                                  "org.apache.poi.ddf.EscherOptRecord:" + nl +
-                                  "  isContainer: false" + nl +
-                                  "  options: 0x0003" + nl +
-                                  "  recordId: 0xF00B" + nl +
-                                  "  numchildren: 0" + nl +
-                                  "  properties:" + nl;
+                               "  isContainer: true" + nl +
+                               "  options: 0x000F" + nl +
+                               "  recordId: 0xF004" + nl +
+                               "  numchildren: 2" + nl +
+                               "  children: " + nl +
+                               "   Child 0:" + nl +
+                               "    org.apache.poi.ddf.EscherOptRecord:" + nl +
+                               "      isContainer: false" + nl +
+                               "      options: 0x0003" + nl +
+                               "      recordId: 0xF00B" + nl +
+                               "      numchildren: 0" + nl +
+                               "      properties:" + nl +
+                               "    " + nl +
+                               "   Child 1:" + nl +
+                               "    org.apache.poi.ddf.EscherOptRecord:" + nl +
+                               "      isContainer: false" + nl +
+                               "      options: 0x0003" + nl +
+                               "      recordId: 0xF00B" + nl +
+                               "      numchildren: 0" + nl +
+                               "      properties:" + nl +
+                               "    " + nl;
                assertEquals(expected, r.toString());
        }