aboutsummaryrefslogtreecommitdiffstats
path: root/src/integrationtest
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2017-03-17 12:03:07 +0000
committerDominik Stadler <centic@apache.org>2017-03-17 12:03:07 +0000
commitf1ccb8577fba21eb3ab5d7d463875cfc8dab97bd (patch)
treed1a9951fd22e17b2b993a2ca1517392053d2ee3a /src/integrationtest
parentc2bce0370e6e8df5bd3f6d4433593f5e80192b82 (diff)
downloadpoi-f1ccb8577fba21eb3ab5d7d463875cfc8dab97bd.tar.gz
poi-f1ccb8577fba21eb3ab5d7d463875cfc8dab97bd.zip
Fix ROOT_DIR
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1787330 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/integrationtest')
-rw-r--r--src/integrationtest/org/apache/poi/TestAllFiles.java2
-rw-r--r--src/integrationtest/org/apache/poi/stress/XSSFBFileHandler.java7
2 files changed, 2 insertions, 7 deletions
diff --git a/src/integrationtest/org/apache/poi/TestAllFiles.java b/src/integrationtest/org/apache/poi/TestAllFiles.java
index 2311421aaa..f69b2300da 100644
--- a/src/integrationtest/org/apache/poi/TestAllFiles.java
+++ b/src/integrationtest/org/apache/poi/TestAllFiles.java
@@ -85,7 +85,7 @@ import org.junit.runners.Parameterized.Parameters;
@RunWith(Parameterized.class)
public class TestAllFiles {
- private static final File ROOT_DIR = new File("C:/users/tallison/idea projects/poi-trunk/test-data");
+ private static final File ROOT_DIR = new File("test-data");
static final String[] SCAN_EXCLUDES = new String[] { "**/.svn/**", "lost+found" };
diff --git a/src/integrationtest/org/apache/poi/stress/XSSFBFileHandler.java b/src/integrationtest/org/apache/poi/stress/XSSFBFileHandler.java
index 9b07d488a5..52691de9a0 100644
--- a/src/integrationtest/org/apache/poi/stress/XSSFBFileHandler.java
+++ b/src/integrationtest/org/apache/poi/stress/XSSFBFileHandler.java
@@ -39,7 +39,6 @@ public class XSSFBFileHandler extends AbstractFileHandler {
);
}
-
@Override
public void handleFile(InputStream stream) throws Exception {
ByteArrayOutputStream out = new ByteArrayOutputStream();
@@ -54,13 +53,11 @@ public class XSSFBFileHandler extends AbstractFileHandler {
}
testNotHandledByWorkbookException(OPCPackage.open(new ByteArrayInputStream(bytes)));
-
}
private void testNotHandledByWorkbookException(OPCPackage pkg) throws IOException {
-
try {
- XSSFWorkbook workbook = new XSSFWorkbook(pkg);
+ new XSSFWorkbook(pkg);
} catch (XLSBUnsupportedException e) {
//this is what we'd expect
//swallow
@@ -90,7 +87,5 @@ public class XSSFBFileHandler extends AbstractFileHandler {
if (txt.length() < 1) {
throw new RuntimeException("Should have gotten some text.");
}
-
}
-
}