From 5a925d115d5ca02221b6411b16c56c273c45bd69 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Thu, 30 Apr 2015 05:50:49 +0000 Subject: [PATCH] Adjust test to handle a file correctly which works for normal handling but fails expectedly in text-extraction testing. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1676902 13f79535-47bb-0310-9956-ffa450edef68 --- src/integrationtest/org/apache/poi/TestAllFiles.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/integrationtest/org/apache/poi/TestAllFiles.java b/src/integrationtest/org/apache/poi/TestAllFiles.java index b63684dda0..96b00fa9df 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)) {