]> source.dussan.org Git - poi.git/commitdiff
Testcase for bug 13224 - reference to Name
authorAvik Sengupta <avik@apache.org>
Mon, 27 Oct 2003 03:38:57 +0000 (03:38 +0000)
committerAvik Sengupta <avik@apache.org>
Mon, 27 Oct 2003 03:38:57 +0000 (03:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353416 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/hssf/data/13224.xls [new file with mode: 0755]
src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java

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 (executable)
index 0000000..81f69d3
Binary files /dev/null and b/src/testcases/org/apache/poi/hssf/data/13224.xls differ
index b27f352564b5479827bfb8cb6c00358bff460de8..f4a8e8d620fd4cc484a79041caf8160d1e331236 100644 (file)
@@ -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);
 
     }