diff options
Diffstat (limited to 'src/integrationtest/org/apache/poi/stress/XWPFFileHandler.java')
-rw-r--r-- | src/integrationtest/org/apache/poi/stress/XWPFFileHandler.java | 8 |
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(); } |