poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1150455 - /poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java
Date Sun, 24 Jul 2011 18:35:04 GMT
Author: sergey
Date: Sun Jul 24 18:35:03 2011
New Revision: 1150455

URL: http://svn.apache.org/viewvc?rev=1150455&view=rev
Log:
arrays shall be compared using Arrays.toString()

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

Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java?rev=1150455&r1=1150454&r2=1150455&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java Sun
Jul 24 18:35:03 2011
@@ -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 
         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());
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message