Testcases.. Testcases! for bug 13224 and all double byte read errors
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353417 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
947f638ba5
commit
6fdf527896
BIN
src/testcases/org/apache/poi/hssf/data/12561-1.xls
Executable file
BIN
src/testcases/org/apache/poi/hssf/data/12561-1.xls
Executable file
Binary file not shown.
BIN
src/testcases/org/apache/poi/hssf/data/12561-2.xls
Executable file
BIN
src/testcases/org/apache/poi/hssf/data/12561-2.xls
Executable file
Binary file not shown.
BIN
src/testcases/org/apache/poi/hssf/data/13224.xls
Executable file
BIN
src/testcases/org/apache/poi/hssf/data/13224.xls
Executable file
Binary file not shown.
BIN
src/testcases/org/apache/poi/hssf/data/15556.xls
Normal file
BIN
src/testcases/org/apache/poi/hssf/data/15556.xls
Normal file
Binary file not shown.
BIN
src/testcases/org/apache/poi/hssf/data/22742.xls
Normal file
BIN
src/testcases/org/apache/poi/hssf/data/22742.xls
Normal file
Binary file not shown.
@ -287,6 +287,59 @@ extends TestCase {
|
||||
System.out.println(io_Excp.getMessage()) ;
|
||||
}
|
||||
}
|
||||
|
||||
/**Double byte strings*/
|
||||
public void test15556() throws java.io.IOException {
|
||||
|
||||
String filename = System.getProperty("HSSF.testdata.path");
|
||||
filename=filename+"/15556.xls";
|
||||
FileInputStream in = new FileInputStream(filename);
|
||||
HSSFWorkbook wb = new HSSFWorkbook(in);
|
||||
HSSFSheet sheet = wb.getSheetAt(0);
|
||||
HSSFRow row = sheet.getRow(45);
|
||||
this.assertTrue("Read row fine!" , true);
|
||||
|
||||
}
|
||||
|
||||
/*Double byte strings */
|
||||
public void test22742() throws java.io.IOException {
|
||||
String filename = System.getProperty("HSSF.testdata.path");
|
||||
filename=filename+"/22742.xls";
|
||||
FileInputStream in = new FileInputStream(filename);
|
||||
HSSFWorkbook wb = new HSSFWorkbook(in); this.assertTrue("Read workbook!" , true);
|
||||
|
||||
}
|
||||
/*Double byte strings */
|
||||
public void test12561_1() throws java.io.IOException {
|
||||
|
||||
String filename = System.getProperty("HSSF.testdata.path");
|
||||
filename=filename+"/12561-1.xls";
|
||||
FileInputStream in = new FileInputStream(filename);
|
||||
HSSFWorkbook wb = new HSSFWorkbook(in);
|
||||
this.assertTrue("Read workbook!" , true);
|
||||
|
||||
}
|
||||
/*Double byte strings */
|
||||
public void test12561_2() throws java.io.IOException {
|
||||
|
||||
String filename = System.getProperty("HSSF.testdata.path");
|
||||
filename=filename+"/12561-2.xls";
|
||||
FileInputStream in = new FileInputStream(filename);
|
||||
HSSFWorkbook wb = new HSSFWorkbook(in);
|
||||
this.assertTrue("Read workbook!" , true);
|
||||
|
||||
}
|
||||
|
||||
/** 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);
|
||||
HSSFWorkbook wb = new HSSFWorkbook(in);
|
||||
this.assertTrue("Read workbook!" , true);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user