Add test to show that bug #43251 is already fixed
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@638804 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a0d0fd14ef
commit
870c5e1889
BIN
src/testcases/org/apache/poi/hssf/data/43251.xls
Normal file
BIN
src/testcases/org/apache/poi/hssf/data/43251.xls
Normal file
Binary file not shown.
@ -1136,6 +1136,20 @@ extends TestCase {
|
|||||||
//assertEquals("=CHOOSE(2,A2,A3,A4)", c2.getCellFormula());
|
//assertEquals("=CHOOSE(2,A2,A3,A4)", c2.getCellFormula());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Something up with the FileSharingRecord
|
||||||
|
*/
|
||||||
|
public void test43251() throws Exception {
|
||||||
|
FileInputStream in = new FileInputStream(new File(cwd, "43251.xls"));
|
||||||
|
|
||||||
|
// Used to blow up with an IllegalArgumentException
|
||||||
|
// when creating a FileSharingRecord
|
||||||
|
HSSFWorkbook wb = new HSSFWorkbook(in);
|
||||||
|
in.close();
|
||||||
|
|
||||||
|
assertEquals(1, wb.getNumberOfSheets());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Crystal reports generates files with short
|
* Crystal reports generates files with short
|
||||||
* StyleRecords, which is against the spec
|
* StyleRecords, which is against the spec
|
||||||
|
Loading…
Reference in New Issue
Block a user