diff --git a/build.xml b/build.xml index 41469093b..c6222de0c 100644 --- a/build.xml +++ b/build.xml @@ -334,6 +334,7 @@ + @@ -359,6 +360,7 @@ + diff --git a/src/testcases/org/apache/poi/hssf/data/28772.xls b/src/testcases/org/apache/poi/hssf/data/28772.xls new file mode 100644 index 000000000..a5190de64 Binary files /dev/null and b/src/testcases/org/apache/poi/hssf/data/28772.xls differ diff --git a/src/testcases/org/apache/poi/hssf/data/33082.xls b/src/testcases/org/apache/poi/hssf/data/33082.xls new file mode 100644 index 000000000..74a2df4de Binary files /dev/null and b/src/testcases/org/apache/poi/hssf/data/33082.xls differ diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestUnfixedBugs.java b/src/testcases/org/apache/poi/hssf/usermodel/TestUnfixedBugs.java new file mode 100644 index 000000000..cd0e34f90 --- /dev/null +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestUnfixedBugs.java @@ -0,0 +1,71 @@ +/* ==================================================================== +Copyright 2002-2004 Apache Software Foundation + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +==================================================================== */ +package org.apache.poi.hssf.usermodel; + +import java.io.FileInputStream; + +import junit.framework.TestCase; + +/** + * @author aviks + * + * This testcase contains tests for bugs that are yet to be fixed. + * Therefore, the standard ant test target does not run these tests. + * Run this testcase with the single-test target. + * The names of the tests usually correspond to the Bugzilla id's + * PLEASE MOVE tests from this class to TestBugs once the bugs are fixed, + * so that they are then run automatically. + */ +public class TestUnfixedBugs extends TestCase { + + + public TestUnfixedBugs(String arg0) { + super(arg0); + + } + + /* 15556 is fixed, but this doesnt work due to bug 34575 + * ArrayIndexOutOfBound in ObjRecord */ + 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); + assertTrue("Read row fine!" , true); + + } + + /* ArrayIndexOutOfBound in BOFRecord */ + public void test28772() throws java.io.IOException { + String filename = System.getProperty("HSSF.testdata.path"); + filename=filename+"/28772.xls"; + FileInputStream in = new FileInputStream(filename); + HSSFWorkbook wb = new HSSFWorkbook(in); + assertTrue("Read book fine!" , true); + } + + /* possible the same as 34575, AIOOB in ObjRecord*/ + public void test33082() throws java.io.IOException { + String filename = System.getProperty("HSSF.testdata.path"); + filename=filename+"/33082.xls"; + FileInputStream in = new FileInputStream(filename); + HSSFWorkbook wb = new HSSFWorkbook(in); + assertTrue("Read book fine!" , true); + } + +}