Test for bug #42564 - appears to already be fixed

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@620341 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2008-02-10 21:54:13 +00:00
parent 655fac8420
commit 45473533cf
2 changed files with 20 additions and 0 deletions

Binary file not shown.

View File

@ -1010,6 +1010,26 @@ extends TestCase {
assertTrue("No Exceptions while reading file", true); assertTrue("No Exceptions while reading file", true);
} }
/**
* Bug 42564: Some files from Acess were giving a RecordFormatException
* when reading the BOFRecord
*/
public void test42564() throws Exception {
FileInputStream in = new FileInputStream(new File(cwd, "42564.xls"));
HSSFWorkbook wb = new HSSFWorkbook(in);
in.close();
assertTrue("No Exceptions while reading file", true);
//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);
}
/** /**
* Bug 42618: RecordFormatException reading a file containing * Bug 42618: RecordFormatException reading a file containing
* =CHOOSE(2,A2,A3,A4) * =CHOOSE(2,A2,A3,A4)