Author: nick
Date: Mon Jul 13 18:00:28 2015
New Revision: 1690780
URL: http://svn.apache.org/r1690780
Log:
More helpful output if a re-write test fails
Modified:
poi/trunk/src/testcases/org/apache/poi/hssf/model/TestDrawingAggregate.java
Modified:
poi/trunk/src/testcases/org/apache/poi/hssf/model/TestDrawingAggregate.java
URL:
http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/model/TestDrawingAggregate.java?rev=1690780&r1=1690779&r2=1690780&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/hssf/model/TestDrawingAggregate.java
(original)
+++ poi/trunk/src/testcases/org/apache/poi/hssf/model/TestDrawingAggregate.java
Mon Jul 13 18:00:28 2015
@@ -51,8 +51,6 @@ import org.apache.poi.util.HexRead;
* @author Evgeniy Berlog
*/
public class TestDrawingAggregate extends TestCase {
-
-
/**
* information about drawing aggregate in a worksheet
*/
@@ -189,7 +187,15 @@ public class TestDrawingAggregate extend
// System.out.println("[WARN] Cannot read " + file.getName());
continue;
}
- assertWriteAndReadBack(wb);
+ try {
+ assertWriteAndReadBack(wb);
+ } catch (Exception e) {
+ String filename = file.getName();
+ System.out.println("Drawing Aggregate re-write test failed for
" + filename);
+ e.printStackTrace(System.out);
+
+ fail("Error when writing and re-reading workbook " + filename
+ "\n" + e);
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]