poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cen...@apache.org
Subject svn commit: r1568558 - /poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestFontRendering.java
Date Sat, 15 Feb 2014 00:21:19 GMT
Author: centic
Date: Sat Feb 15 00:21:19 2014
New Revision: 1568558

URL: http://svn.apache.org/r1568558
Log:
Provide more output on test that failed for me locally

Modified:
    poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestFontRendering.java

Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestFontRendering.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestFontRendering.java?rev=1568558&r1=1568557&r2=1568558&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestFontRendering.java
(original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestFontRendering.java
Sat Feb 15 00:21:19 2014
@@ -107,6 +107,9 @@ public class TestFontRendering {
         BufferedImage imgExpected = ImageIO.read(slTests.getFile("bug55902-mixedChars.png"));
         DataBufferByte expectedDB = (DataBufferByte)imgExpected.getRaster().getDataBuffer();
         DataBufferByte actualDB = (DataBufferByte)imgActual.getRaster().getDataBuffer();
-        assertTrue(Arrays.equals(expectedDB.getData(0), actualDB.getData(0)));
+        byte[] expectedData = expectedDB.getData(0);
+        byte[] actualData = actualDB.getData(0);
+        assertTrue("Expected to have matching raster-arrays, but found differences, size
" + expectedData.length + " and " + actualData.length, 
+                Arrays.equals(expectedData, actualData));
     }
 }



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


Mime
View raw message