From 3c1dc201a3d054993e01dd0619f64fa49f517bbe Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Wed, 22 Apr 2015 06:49:38 +0000 Subject: [PATCH] Print out slightly more on test-failure for a unit tests which fails intermittently git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1675266 13f79535-47bb-0310-9956-ffa450edef68 --- .../testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java index 5caf72988f..6a3ddafa3d 100644 --- a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java +++ b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java @@ -33,6 +33,7 @@ import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; +import java.util.Arrays; import java.util.Calendar; import java.util.List; @@ -1542,7 +1543,8 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues { wb.write(bos); byte secondSave[] = bos.toByteArray(); - assertArrayEquals(firstSave, secondSave); + assertArrayEquals("Had: \n" + Arrays.toString(firstSave) + " and \n" + Arrays.toString(secondSave), + firstSave, secondSave); wb.close(); } -- 2.39.5