@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" };
);
}
-
@Override
public void handleFile(InputStream stream) throws Exception {
ByteArrayOutputStream out = new ByteArrayOutputStream();
}
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
if (txt.length() < 1) {
throw new RuntimeException("Should have gotten some text.");
}
-
}
-
}