Permalink
Browse files

Provide more output on test that failed for me locally

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1568558 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 8bc8ac9 commit b51a52cf206e212f59fdf274c975d22e6c090d42 @poi-benchmark poi-benchmark committed Feb 15, 2014
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestFontRendering.java
@@ -107,6 +107,9 @@ public void bug55902mixedFontWithChineseCharacters() throws Exception {
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));
}
}

0 comments on commit b51a52c

Please sign in to comment.