From: Avik Sengupta Date: Tue, 28 Oct 2003 10:28:54 +0000 (+0000) Subject: added testcase for bug 19599 X-Git-Tag: REL_2_5_1~61 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=749ff5363bf1305c483120bb45e6849ff2d93745;p=poi.git added testcase for bug 19599 git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353420 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/testcases/org/apache/poi/hssf/data/19599-1.xls b/src/testcases/org/apache/poi/hssf/data/19599-1.xls new file mode 100644 index 0000000000..4ce27d1fb7 Binary files /dev/null and b/src/testcases/org/apache/poi/hssf/data/19599-1.xls differ diff --git a/src/testcases/org/apache/poi/hssf/data/19599-2.xls b/src/testcases/org/apache/poi/hssf/data/19599-2.xls new file mode 100644 index 0000000000..17f45839dd Binary files /dev/null and b/src/testcases/org/apache/poi/hssf/data/19599-2.xls differ diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java index 779805423d..aaeb9b93e7 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java @@ -65,6 +65,8 @@ import junit.framework.TestCase; /** + * Testcases for bugs entered in bugzilla + * the Test name contains the bugzilla bug id * @author Avik Sengupta */ @@ -351,7 +353,6 @@ extends TestCase { /** Reference to Name*/ public void test13224() throws java.io.IOException { - String filename = System.getProperty("HSSF.testdata.path"); filename=filename+"/13224.xls"; FileInputStream in = new FileInputStream(filename); @@ -359,6 +360,16 @@ extends TestCase { this.assertTrue("Read workbook!" , true); } + + /** Illegal argument exception - cannot store duplicate value in Map*/ + public void test19599() throws java.io.IOException { + FileInputStream in = new FileInputStream("19599-1.xls"); + HSSFWorkbook wb = new HSSFWorkbook(in); + in = new FileInputStream("19599-2.xls"); + wb = new HSSFWorkbook(in); + this.assertTrue("Read workbook, No exceptions" , true); + + } }