Add a disabled test for a file with whacky StyleRecords that trigger an AIOOB
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@629849 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1a6fcd5024
commit
e0b06b3510
BIN
src/testcases/org/apache/poi/hssf/data/OddStyleRecord.xls
Normal file
BIN
src/testcases/org/apache/poi/hssf/data/OddStyleRecord.xls
Normal file
Binary file not shown.
@ -1089,6 +1089,24 @@ extends TestCase {
|
||||
// "EmptyStackException"
|
||||
//assertEquals("=CHOOSE(2,A2,A3,A4)", c2.getCellFormula());
|
||||
}
|
||||
|
||||
/**
|
||||
* Date: Tue, 19 Feb 2008 05:03:47 -0800 (PST)
|
||||
* From: Setya <jsetya@gmail.com>
|
||||
* Subject: Exception when parsing excel file
|
||||
*/
|
||||
public void BROKENtest20080219() throws Exception {
|
||||
FileInputStream in = new FileInputStream(new File(cwd, "OddStyleRecord.xls"));
|
||||
|
||||
// Blows up with an ArrayIndexOutOfBounds
|
||||
// when creating a StyleRecord
|
||||
// However, our code matches the latest Microsoft
|
||||
// docs, so no idea what's wrong
|
||||
HSSFWorkbook wb = new HSSFWorkbook(in);
|
||||
in.close();
|
||||
|
||||
assertEquals(1, wb.getNumberOfSheets());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user