Correctly handle all types of old files, not just word
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1766064 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0610a20d87
commit
04184527b4
@ -17,7 +17,6 @@
|
|||||||
package org.apache.poi;
|
package org.apache.poi;
|
||||||
|
|
||||||
|
|
||||||
import org.apache.poi.hwpf.OldWordFileFormatException;
|
|
||||||
import org.apache.poi.stress.*;
|
import org.apache.poi.stress.*;
|
||||||
import org.apache.tools.ant.DirectoryScanner;
|
import org.apache.tools.ant.DirectoryScanner;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
@ -353,7 +352,7 @@ public class TestAllFiles {
|
|||||||
|
|
||||||
assertFalse("Expected to fail for file " + file + " and handler " + handler + ", but did not fail!",
|
assertFalse("Expected to fail for file " + file + " and handler " + handler + ", but did not fail!",
|
||||||
EXPECTED_FAILURES.contains(file) && !ignoredOPC);
|
EXPECTED_FAILURES.contains(file) && !ignoredOPC);
|
||||||
} catch (OldWordFileFormatException e) {
|
} catch (OldFileFormatException e) {
|
||||||
// for old word files we should still support extracting text
|
// for old word files we should still support extracting text
|
||||||
if(OLD_FILES.contains(file)) {
|
if(OLD_FILES.contains(file)) {
|
||||||
handler.handleExtracting(inputFile);
|
handler.handleExtracting(inputFile);
|
||||||
|
Loading…
Reference in New Issue
Block a user