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
This commit is contained in:
parent
d193c7c1a4
commit
a26c21dbcc
BIN
src/testcases/org/apache/poi/hssf/data/19599-1.xls
Normal file
BIN
src/testcases/org/apache/poi/hssf/data/19599-1.xls
Normal file
Binary file not shown.
BIN
src/testcases/org/apache/poi/hssf/data/19599-2.xls
Normal file
BIN
src/testcases/org/apache/poi/hssf/data/19599-2.xls
Normal file
Binary file not shown.
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user