More helpful output if a re-write test fails
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690780 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fdd0d249ca
commit
010e67c749
@ -51,8 +51,6 @@ import org.apache.poi.util.HexRead;
|
|||||||
* @author Evgeniy Berlog
|
* @author Evgeniy Berlog
|
||||||
*/
|
*/
|
||||||
public class TestDrawingAggregate extends TestCase {
|
public class TestDrawingAggregate extends TestCase {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* information about drawing aggregate in a worksheet
|
* information about drawing aggregate in a worksheet
|
||||||
*/
|
*/
|
||||||
@ -189,7 +187,15 @@ public class TestDrawingAggregate extends TestCase {
|
|||||||
// System.out.println("[WARN] Cannot read " + file.getName());
|
// System.out.println("[WARN] Cannot read " + file.getName());
|
||||||
continue;
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user