aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2008-02-11 17:55:09 +0000
committerNick Burch <nick@apache.org>2008-02-11 17:55:09 +0000
commit03c0344f9b5cacce0053124470a526e66c97ff8e (patch)
tree35e5f6869d1a423b05857e4c16b59391afa1f852
parente1c059bde81a1d8485cfbb4cfb558bf3529904f9 (diff)
downloadpoi-03c0344f9b5cacce0053124470a526e66c97ff8e.tar.gz
poi-03c0344f9b5cacce0053124470a526e66c97ff8e.zip
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
-rw-r--r--src/testcases/org/apache/poi/hssf/data/42564-2.xlsbin0 -> 27136 bytes
-rw-r--r--src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java24
2 files changed, 23 insertions, 1 deletions
diff --git a/src/testcases/org/apache/poi/hssf/data/42564-2.xls b/src/testcases/org/apache/poi/hssf/data/42564-2.xls
new file mode 100644
index 0000000000..3a93b40783
--- /dev/null
+++ b/src/testcases/org/apache/poi/hssf/data/42564-2.xls
Binary files differ
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
index 616ec8b1f6..6dfdddad44 100644
--- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
+++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
@@ -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