diff options
author | Dominik Stadler <centic@apache.org> | 2022-01-22 08:57:50 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2022-01-22 08:57:50 +0000 |
commit | cf15cba02d480250408c7ea33bc018b63ef76c31 (patch) | |
tree | 7406bf6ec1d6432ceb178edf842bd605277df559 /poi-integration | |
parent | 9d97acc448776e783163a9afd27203919f203848 (diff) | |
download | poi-cf15cba02d480250408c7ea33bc018b63ef76c31.tar.gz poi-cf15cba02d480250408c7ea33bc018b63ef76c31.zip |
Add more output when integration-tests do not fail with the expected exception
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897333 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-integration')
-rw-r--r-- | poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java b/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java index ece5daca7a..39192fb331 100644 --- a/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java +++ b/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java @@ -215,12 +215,12 @@ public class TestAllFiles { if (exClass != null && AssertionFailedError.class.isAssignableFrom(exClass)) { try { exec.execute(); - fail(errPrefix + "Expected failed assertion"); + fail(errPrefix + "Expected failed assertion " + exClass + " and message " + exMessage); } catch (AssertionFailedError e) { String actMsg = pathReplace(e.getMessage()); assertEquals(exMessage, actMsg, errPrefix); } catch (Throwable e) { - fail(errPrefix + "Unexpected exception", e); + fail(errPrefix + "Unexpected exception, expected " + exClass + " and message " + exMessage, e); } } else if (exClass != null) { Exception e = assertThrows((Class<? extends Exception>)exClass, exec); |