aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2008-03-19 12:01:32 +0000
committerNick Burch <nick@apache.org>2008-03-19 12:01:32 +0000
commit02831d348b494da54db06368ed17c919a565c1e9 (patch)
treea57f1a04ba8a8144fa2dfc5093177a8024f1b506 /src/testcases/org/apache/poi/hssf
parent12120b87326d37304e1c23b415314f10312928c2 (diff)
downloadpoi-02831d348b494da54db06368ed17c919a565c1e9.tar.gz
poi-02831d348b494da54db06368ed17c919a565c1e9.zip
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
Diffstat (limited to 'src/testcases/org/apache/poi/hssf')
-rw-r--r--src/testcases/org/apache/poi/hssf/data/43251.xlsbin0 -> 166400 bytes
-rw-r--r--src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java14
2 files changed, 14 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/hssf/data/43251.xls b/src/testcases/org/apache/poi/hssf/data/43251.xls
new file mode 100644
index 0000000000..abc476ab0f
--- /dev/null
+++ b/src/testcases/org/apache/poi/hssf/data/43251.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 e7eff83e62..b534a8bbfb 100644
--- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
+++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
@@ -1137,6 +1137,20 @@ extends TestCase {
}
/**
+ * 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
* StyleRecords, which is against the spec
*/