Testcase for bug 13224 - reference to Name

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353416 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Avik Sengupta 2003-10-27 03:38:57 +00:00
parent 1787340889
commit fcd6ef1334
2 changed files with 13 additions and 9 deletions

Binary file not shown.

View File

@ -250,7 +250,7 @@ extends TestCase {
HSSFWorkbook wb = new HSSFWorkbook() ; HSSFWorkbook wb = new HSSFWorkbook() ;
HSSFSheet sheet = wb.createSheet("ExcelTest") ; HSSFSheet sheet = wb.createSheet("ExcelTest") ;
int col_cnt=0, rw_cnt=0 ; int col_cnt=0, rw_cnt=0 ;
col_cnt = c; col_cnt = c;
@ -306,10 +306,7 @@ extends TestCase {
String filename = System.getProperty("HSSF.testdata.path"); String filename = System.getProperty("HSSF.testdata.path");
filename=filename+"/22742.xls"; filename=filename+"/22742.xls";
FileInputStream in = new FileInputStream(filename); FileInputStream in = new FileInputStream(filename);
HSSFWorkbook wb = new HSSFWorkbook(in); HSSFWorkbook wb = new HSSFWorkbook(in); this.assertTrue("Read workbook!" , true);
//HSSFSheet sheet = wb.getSheetAt(0);
//HSSFRow row = sheet.getRow(45);
this.assertTrue("Read workbook!" , true);
} }
/*Double byte strings */ /*Double byte strings */
@ -319,8 +316,6 @@ extends TestCase {
filename=filename+"/12561-1.xls"; filename=filename+"/12561-1.xls";
FileInputStream in = new FileInputStream(filename); FileInputStream in = new FileInputStream(filename);
HSSFWorkbook wb = new HSSFWorkbook(in); HSSFWorkbook wb = new HSSFWorkbook(in);
//HSSFSheet sheet = wb.getSheetAt(0);
//HSSFRow row = sheet.getRow(45);
this.assertTrue("Read workbook!" , true); this.assertTrue("Read workbook!" , true);
} }
@ -331,8 +326,17 @@ extends TestCase {
filename=filename+"/12561-2.xls"; filename=filename+"/12561-2.xls";
FileInputStream in = new FileInputStream(filename); FileInputStream in = new FileInputStream(filename);
HSSFWorkbook wb = new HSSFWorkbook(in); HSSFWorkbook wb = new HSSFWorkbook(in);
//HSSFSheet sheet = wb.getSheetAt(0); this.assertTrue("Read workbook!" , true);
//HSSFRow row = sheet.getRow(45);
}
/** 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); this.assertTrue("Read workbook!" , true);
} }