From: Avik Sengupta Date: Mon, 27 Oct 2003 03:38:57 +0000 (+0000) Subject: Testcase for bug 13224 - reference to Name X-Git-Tag: REL_2_5_1~63 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ac4787a2b6d11dbd54fdec7ea3be91a177321a05;p=poi.git 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 --- diff --git a/src/testcases/org/apache/poi/hssf/data/13224.xls b/src/testcases/org/apache/poi/hssf/data/13224.xls new file mode 100755 index 0000000000..81f69d3334 Binary files /dev/null and b/src/testcases/org/apache/poi/hssf/data/13224.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 b27f352564..f4a8e8d620 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java @@ -250,7 +250,7 @@ extends TestCase { HSSFWorkbook wb = new HSSFWorkbook() ; HSSFSheet sheet = wb.createSheet("ExcelTest") ; - + int col_cnt=0, rw_cnt=0 ; col_cnt = c; @@ -306,10 +306,7 @@ extends TestCase { String filename = System.getProperty("HSSF.testdata.path"); filename=filename+"/22742.xls"; FileInputStream in = new FileInputStream(filename); - HSSFWorkbook wb = new HSSFWorkbook(in); - //HSSFSheet sheet = wb.getSheetAt(0); - //HSSFRow row = sheet.getRow(45); - this.assertTrue("Read workbook!" , true); + HSSFWorkbook wb = new HSSFWorkbook(in); this.assertTrue("Read workbook!" , true); } /*Double byte strings */ @@ -319,8 +316,6 @@ extends TestCase { filename=filename+"/12561-1.xls"; FileInputStream in = new FileInputStream(filename); HSSFWorkbook wb = new HSSFWorkbook(in); - //HSSFSheet sheet = wb.getSheetAt(0); - //HSSFRow row = sheet.getRow(45); this.assertTrue("Read workbook!" , true); } @@ -331,8 +326,17 @@ extends TestCase { filename=filename+"/12561-2.xls"; FileInputStream in = new FileInputStream(filename); HSSFWorkbook wb = new HSSFWorkbook(in); - //HSSFSheet sheet = wb.getSheetAt(0); - //HSSFRow row = sheet.getRow(45); + 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); }