You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2015/04/30 07:50:49 UTC
svn commit: r1676902 -
/poi/trunk/src/integrationtest/org/apache/poi/TestAllFiles.java
Author: centic
Date: Thu Apr 30 05:50:49 2015
New Revision: 1676902
URL: http://svn.apache.org/r1676902
Log:
Adjust test to handle a file correctly which works for normal handling but fails expectedly in text-extraction testing.
Modified:
poi/trunk/src/integrationtest/org/apache/poi/TestAllFiles.java
Modified: poi/trunk/src/integrationtest/org/apache/poi/TestAllFiles.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/integrationtest/org/apache/poi/TestAllFiles.java?rev=1676902&r1=1676901&r2=1676902&view=diff
==============================================================================
--- poi/trunk/src/integrationtest/org/apache/poi/TestAllFiles.java (original)
+++ poi/trunk/src/integrationtest/org/apache/poi/TestAllFiles.java Thu Apr 30 05:50:49 2015
@@ -285,14 +285,15 @@ public class TestAllFiles {
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 {
stream.close();
}
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)) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org