You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2017/03/17 12:03:07 UTC
svn commit: r1787330 - in /poi/trunk/src/integrationtest/org/apache/poi:
TestAllFiles.java stress/XSSFBFileHandler.java
Author: centic
Date: Fri Mar 17 12:03:07 2017
New Revision: 1787330
URL: http://svn.apache.org/viewvc?rev=1787330&view=rev
Log:
Fix ROOT_DIR
Modified:
poi/trunk/src/integrationtest/org/apache/poi/TestAllFiles.java
poi/trunk/src/integrationtest/org/apache/poi/stress/XSSFBFileHandler.java
Modified: poi/trunk/src/integrationtest/org/apache/poi/TestAllFiles.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/integrationtest/org/apache/poi/TestAllFiles.java?rev=1787330&r1=1787329&r2=1787330&view=diff
==============================================================================
--- poi/trunk/src/integrationtest/org/apache/poi/TestAllFiles.java (original)
+++ poi/trunk/src/integrationtest/org/apache/poi/TestAllFiles.java Fri Mar 17 12:03:07 2017
@@ -85,7 +85,7 @@ import org.junit.runners.Parameterized.P
@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" };
Modified: poi/trunk/src/integrationtest/org/apache/poi/stress/XSSFBFileHandler.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/integrationtest/org/apache/poi/stress/XSSFBFileHandler.java?rev=1787330&r1=1787329&r2=1787330&view=diff
==============================================================================
--- poi/trunk/src/integrationtest/org/apache/poi/stress/XSSFBFileHandler.java (original)
+++ poi/trunk/src/integrationtest/org/apache/poi/stress/XSSFBFileHandler.java Fri Mar 17 12:03:07 2017
@@ -39,7 +39,6 @@ public class XSSFBFileHandler extends Ab
);
}
-
@Override
public void handleFile(InputStream stream) throws Exception {
ByteArrayOutputStream out = new ByteArrayOutputStream();
@@ -54,13 +53,11 @@ public class XSSFBFileHandler extends Ab
}
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 Ab
if (txt.length() < 1) {
throw new RuntimeException("Should have gotten some text.");
}
-
}
-
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org