]> source.dussan.org Git - poi.git/commitdiff
added testcase for bug 19599
authorAvik Sengupta <avik@apache.org>
Tue, 28 Oct 2003 10:28:54 +0000 (10:28 +0000)
committerAvik Sengupta <avik@apache.org>
Tue, 28 Oct 2003 10:28:54 +0000 (10:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353420 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/hssf/data/19599-1.xls [new file with mode: 0644]
src/testcases/org/apache/poi/hssf/data/19599-2.xls [new file with mode: 0644]
src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java

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 (file)
index 0000000..4ce27d1
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 (file)
index 0000000..17f4583
Binary files /dev/null and b/src/testcases/org/apache/poi/hssf/data/19599-2.xls differ
index 779805423d6c8b639314764ee48322517a80ca1b..aaeb9b93e7c46fad60552c859d45aae6fa9e0452 100644 (file)
@@ -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);
+
+    }
 }