public class TestAllFiles {
private static final File ROOT_DIR = new File("test-data");
- static final String[] SCAN_EXCLUDES = new String[] { "**/.svn/**", "lost+found" };
+ static final String[] SCAN_EXCLUDES = new String[] { "**/.svn/**", "lost+found", "**/.git/**" };
private static final Map<String,String> FILE_PASSWORD;
==================================================================== */
package org.apache.poi.stress;
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
+import java.io.*;
import org.apache.poi.openxml4j.opc.OPCPackage;
import org.apache.poi.openxml4j.opc.PackageAccess;
import org.apache.poi.xssf.XLSBUnsupportedException;
import org.apache.poi.xssf.extractor.XSSFBEventBasedExcelExtractor;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
+import org.junit.Test;
public class XSSFBFileHandler extends AbstractFileHandler {
throw new RuntimeException("Should have gotten some text.");
}
}
+
+ @Test
+ public void testLocal() throws Exception {
+ File file = new File("test-data/spreadsheet/Simple.xlsb");
+ FileInputStream stream = new FileInputStream(file);
+ try {
+ handleFile(stream, file.getPath());
+ } finally {
+ stream.close();
+ }
+ handleExtracting(file);
+ }
}