Another test relating to bug #42564 - this one is still failing

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@620557 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2008-02-11 17:55:09 +00:00
parent 45473533cf
commit 600dd45507
2 changed files with 23 additions and 1 deletions

Binary file not shown.

View File

@ -1011,7 +1011,7 @@ extends TestCase {
}
/**
* Bug 42564: Some files from Acess were giving a RecordFormatException
* Bug 42564: Some files from Access were giving a RecordFormatException
* when reading the BOFRecord
*/
public void test42564() throws Exception {
@ -1029,6 +1029,28 @@ extends TestCase {
wb = new HSSFWorkbook(new ByteArrayInputStream(out.toByteArray()));
assertTrue("No Exceptions while reading file", true);
}
/**
* Bug 42564: Some files from Access also have issues
* with the NameRecord, once you get past the BOFRecord
* issue.
* TODO - still broken
*/
public void DISABLEDtest42564Alt() throws Exception {
FileInputStream in = new FileInputStream(new File(cwd, "42564-2.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