diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2021-01-17 21:20:05 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2021-01-17 21:20:05 +0000 |
commit | 8f2c722fd3818abeaef2aeb72a8e58b29a8dca08 (patch) | |
tree | a1fe52b6053b508cb48b4dbf50e0e9619abf53ce /src | |
parent | f5f5fc462c9358d8a5ccda6f99e37e3af18971e9 (diff) | |
download | poi-8f2c722fd3818abeaef2aeb72a8e58b29a8dca08.tar.gz poi-8f2c722fd3818abeaef2aeb72a8e58b29a8dca08.zip |
Integration tests - try to fix Oracle/OpenJDK vs IBM-JDK error message differences on XXE files
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885625 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/integrationtest/org/apache/poi/stress/TestAllFiles.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/integrationtest/org/apache/poi/stress/TestAllFiles.java b/src/integrationtest/org/apache/poi/stress/TestAllFiles.java index 0849f9d989..81c31d3a21 100644 --- a/src/integrationtest/org/apache/poi/stress/TestAllFiles.java +++ b/src/integrationtest/org/apache/poi/stress/TestAllFiles.java @@ -176,11 +176,11 @@ public class TestAllFiles { // with Java 16+ NullPointerExceptions may contain a message ... but apparently not always ?! assertTrue(jreVersion >= 16 || actMsg == null, errPrefix); if (actMsg != null) { - assertTrue(actMsg.startsWith(exMessage), errPrefix + "Message: "+actMsg+" - didn't start with "+exMessage); + assertTrue(actMsg.contains(exMessage), errPrefix + "Message: "+actMsg+" - didn't contain: "+exMessage); } } else { assertNotNull(actMsg, errPrefix); - assertTrue(actMsg.startsWith(exMessage), errPrefix + "Message: "+actMsg+" - didn't start with "+exMessage); + assertTrue(actMsg.contains(exMessage), errPrefix + "Message: "+actMsg+" - didn't contain: "+exMessage); } } else { assertDoesNotThrow(exec, errPrefix); |