diff --git a/src/integrationtest/org/apache/poi/TestAllFiles.java b/src/integrationtest/org/apache/poi/TestAllFiles.java index b63684dda..96b00fa9d 100644 --- a/src/integrationtest/org/apache/poi/TestAllFiles.java +++ b/src/integrationtest/org/apache/poi/TestAllFiles.java @@ -284,8 +284,6 @@ public class TestAllFiles { try { handler.handleFile(stream); - assertFalse("Expected to fail for file " + file + " and handler " + handler + ", but did not fail!", - EXPECTED_FAILURES.contains(file)); assertFalse("Expected to fail for file " + file + " and handler " + handler + ", but did not fail!", OLD_FILES.contains(file)); } finally { @@ -293,6 +291,9 @@ public class TestAllFiles { } handler.handleExtracting(inputFile); + + assertFalse("Expected to fail for file " + file + " and handler " + handler + ", but did not fail!", + EXPECTED_FAILURES.contains(file)); } catch (OldWordFileFormatException e) { // for old word files we should still support extracting text if(OLD_FILES.contains(file)) {