aboutsummaryrefslogtreecommitdiffstats
path: root/src/integrationtest/org/apache/poi/stress/XWPFFileHandler.java
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2017-05-02 23:25:45 +0000
committerAndreas Beeker <kiwiwings@apache.org>2017-05-02 23:25:45 +0000
commit3388787d2cee72b0e1679ec42fa555dc7b77c978 (patch)
tree599a4abf467b6956a85e149ecdc74d5fda64102f /src/integrationtest/org/apache/poi/stress/XWPFFileHandler.java
parent06eb866034dcda938027f86ffed6fe8ebf0ada2e (diff)
downloadpoi-3388787d2cee72b0e1679ec42fa555dc7b77c978.tar.gz
poi-3388787d2cee72b0e1679ec42fa555dc7b77c978.zip
IntegrationTest - move excludes to file handler
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793595 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/integrationtest/org/apache/poi/stress/XWPFFileHandler.java')
-rw-r--r--src/integrationtest/org/apache/poi/stress/XWPFFileHandler.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/integrationtest/org/apache/poi/stress/XWPFFileHandler.java b/src/integrationtest/org/apache/poi/stress/XWPFFileHandler.java
index c097dc9f71..142e816109 100644
--- a/src/integrationtest/org/apache/poi/stress/XWPFFileHandler.java
+++ b/src/integrationtest/org/apache/poi/stress/XWPFFileHandler.java
@@ -26,7 +26,7 @@ import org.junit.Test;
public class XWPFFileHandler extends AbstractFileHandler {
@Override
- public void handleFile(InputStream stream) throws Exception {
+ public void handleFile(InputStream stream, String path) throws Exception {
// ignore password protected files
if (POIXMLDocumentHandler.isEncrypted(stream)) return;
@@ -38,11 +38,11 @@ public class XWPFFileHandler extends AbstractFileHandler {
// a test-case to test this locally without executing the full TestAllFiles
@Test
public void test() throws Exception {
- File file = new File("test-data/document/51921-Word-Crash067.docx");
+ File file = new File("test-data/document/51921-Word-Crash067.docx");
- InputStream stream = new PushbackInputStream(new FileInputStream(file), 100000);
+ InputStream stream = new PushbackInputStream(new FileInputStream(file), 100000);
try {
- handleFile(stream);
+ handleFile(stream, file.getPath());
} finally {
stream.close();
}