mirror of https://github.com/apache/poi.git
Adjust local test in integration-test file-handler
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808505 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
37c52a8dfd
commit
bcafee36cc
|
@ -16,10 +16,10 @@
|
|||
==================================================================== */
|
||||
package org.apache.poi.stress;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.InputStream;
|
||||
import java.io.PushbackInputStream;
|
||||
|
||||
import org.apache.poi.xwpf.usermodel.XWPFDocument;
|
||||
import org.junit.Test;
|
||||
|
@ -40,7 +40,7 @@ public class XWPFFileHandler extends AbstractFileHandler {
|
|||
public void test() throws Exception {
|
||||
File file = new File("test-data/document/51921-Word-Crash067.docx");
|
||||
|
||||
InputStream stream = new PushbackInputStream(new FileInputStream(file), 100000);
|
||||
InputStream stream = new BufferedInputStream(new FileInputStream(file));
|
||||
try {
|
||||
handleFile(stream, file.getPath());
|
||||
} finally {
|
||||
|
@ -49,5 +49,4 @@ public class XWPFFileHandler extends AbstractFileHandler {
|
|||
|
||||
handleExtracting(file);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue