diff options
author | Nick Burch <nick@apache.org> | 2008-03-19 12:01:32 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2008-03-19 12:01:32 +0000 |
commit | 02831d348b494da54db06368ed17c919a565c1e9 (patch) | |
tree | a57f1a04ba8a8144fa2dfc5093177a8024f1b506 /src/testcases/org/apache/poi/hssf | |
parent | 12120b87326d37304e1c23b415314f10312928c2 (diff) | |
download | poi-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.xls | bin | 0 -> 166400 bytes | |||
-rw-r--r-- | src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java | 14 |
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 Binary files differnew file mode 100644 index 0000000000..abc476ab0f --- /dev/null +++ b/src/testcases/org/apache/poi/hssf/data/43251.xls 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 */ |