assertTrue("No Exceptions while reading file", true);
}
+ /**
+ * Bug 41546: Constructing HSSFWorkbook is failed,
+ * Unknown Ptg in Formula: 0x1a (26)
+ */
+ public void test41546() throws Exception {
+ FileInputStream in = new FileInputStream(new File(cwd, "41546.xls"));
+ HSSFWorkbook wb = new HSSFWorkbook(in);
+ in.close();
+
+ assertTrue("No Exceptions while reading file", true);
+ assertEquals(1, wb.getNumberOfSheets());
+
+ //serialize and read again
+ ByteArrayOutputStream out = new ByteArrayOutputStream();
+ wb.write(out);
+ out.close();
+
+ wb = new HSSFWorkbook(new ByteArrayInputStream(out.toByteArray()));
+ assertTrue("No Exceptions while reading file", true);
+ assertEquals(1, wb.getNumberOfSheets());
+ }
+
/**
* Bug 42564: Some files from Access were giving a RecordFormatException
* when reading the BOFRecord
* probably due to dropdowns
*/
public void test44593() throws Exception {
- FileInputStream in = new FileInputStream(new File(cwd, "Bug44593.xls"));
+ FileInputStream in = new FileInputStream(new File(cwd, "44593.xls"));
// Used to blow up with an IllegalArgumentException
// when creating a DVRecord