]> source.dussan.org Git - poi.git/commitdiff
Testcases.. Testcases! for bug 13224 and all double byte read errors
authorAvik Sengupta <avik@apache.org>
Mon, 27 Oct 2003 03:43:16 +0000 (03:43 +0000)
committerAvik Sengupta <avik@apache.org>
Mon, 27 Oct 2003 03:43:16 +0000 (03:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353417 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/hssf/data/12561-1.xls [new file with mode: 0755]
src/testcases/org/apache/poi/hssf/data/12561-2.xls [new file with mode: 0755]
src/testcases/org/apache/poi/hssf/data/13224.xls [new file with mode: 0755]
src/testcases/org/apache/poi/hssf/data/15556.xls [new file with mode: 0644]
src/testcases/org/apache/poi/hssf/data/22742.xls [new file with mode: 0644]
src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java

diff --git a/src/testcases/org/apache/poi/hssf/data/12561-1.xls b/src/testcases/org/apache/poi/hssf/data/12561-1.xls
new file mode 100755 (executable)
index 0000000..40b7276
Binary files /dev/null and b/src/testcases/org/apache/poi/hssf/data/12561-1.xls differ
diff --git a/src/testcases/org/apache/poi/hssf/data/12561-2.xls b/src/testcases/org/apache/poi/hssf/data/12561-2.xls
new file mode 100755 (executable)
index 0000000..bb360c1
Binary files /dev/null and b/src/testcases/org/apache/poi/hssf/data/12561-2.xls differ
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
diff --git a/src/testcases/org/apache/poi/hssf/data/15556.xls b/src/testcases/org/apache/poi/hssf/data/15556.xls
new file mode 100644 (file)
index 0000000..82b48a5
Binary files /dev/null and b/src/testcases/org/apache/poi/hssf/data/15556.xls differ
diff --git a/src/testcases/org/apache/poi/hssf/data/22742.xls b/src/testcases/org/apache/poi/hssf/data/22742.xls
new file mode 100644 (file)
index 0000000..cd367ca
Binary files /dev/null and b/src/testcases/org/apache/poi/hssf/data/22742.xls differ
index d49cf64f7959b8512a5aed0139d376b387eed8ae..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;
@@ -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);
+
+    }
 }