]> source.dussan.org Git - poi.git/commitdiff
arrays shall be compared using Arrays.toString()
authorSergey Vladimirov <sergey@apache.org>
Sun, 24 Jul 2011 18:35:03 +0000 (18:35 +0000)
committerSergey Vladimirov <sergey@apache.org>
Sun, 24 Jul 2011 18:35:03 +0000 (18:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1150455 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java

index 0dbe2cf2d75181d50c08d10677359234dc6d6a54..84feac09947974e8adb12e32a7f84d48834ea68c 100644 (file)
@@ -19,6 +19,7 @@ package org.apache.poi.hwpf.usermodel;
 
 import java.io.IOException;
 import java.io.InputStream;
+import java.util.Arrays;
 import java.util.List;
 
 import junit.framework.AssertionFailedError;
@@ -468,7 +469,8 @@ public final class TestProblems extends HWPFTestCase {
         try {
             assertEquals(extractor1.getFooterText(), extractor2.getFooterText());
             assertEquals(extractor1.getHeaderText(), extractor2.getHeaderText());
-            assertEquals(extractor1.getParagraphText(), extractor2.getParagraphText());
+            assertEquals( Arrays.toString( extractor1.getParagraphText() ),
+                    Arrays.toString( extractor2.getParagraphText() ) );
 
             assertEquals(extractor1.getText(), extractor2.getText());