unfixed testcases, so you know what to fix :)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353666 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ee35b34b52
commit
f6341e8422
@ -334,6 +334,7 @@
|
||||
<include name="**/Test*.java"/>
|
||||
<exclude name="**/AllTests.java"/>
|
||||
<exclude name="**/TestEmptyDocument.java"/>
|
||||
<exclude name="**/TestUnfixedBugs.java"/>
|
||||
</fileset>
|
||||
</batchtest>
|
||||
</junit>
|
||||
@ -359,6 +360,7 @@
|
||||
<batchtest todir="${main.reports.test}">
|
||||
<fileset dir="${main.src.test}">
|
||||
<include name="**/TestEmptyDocument.java"/>
|
||||
<exclude name="**/TestUnfixedBugs.java"/>
|
||||
</fileset>
|
||||
</batchtest>
|
||||
|
||||
|
BIN
src/testcases/org/apache/poi/hssf/data/28772.xls
Normal file
BIN
src/testcases/org/apache/poi/hssf/data/28772.xls
Normal file
Binary file not shown.
BIN
src/testcases/org/apache/poi/hssf/data/33082.xls
Normal file
BIN
src/testcases/org/apache/poi/hssf/data/33082.xls
Normal file
Binary file not shown.
@ -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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user