Browse Source

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
tags/REL_5_1_0
Andreas Beeker 3 years ago
parent
commit
8f2c722fd3

+ 2
- 2
src/integrationtest/org/apache/poi/stress/TestAllFiles.java View File

@@ -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);

BIN
test-data/spreadsheet/stress.xls View File


Loading…
Cancel
Save