aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases
diff options
context:
space:
mode:
authorAvik Sengupta <avik@apache.org>2005-05-03 13:23:34 +0000
committerAvik Sengupta <avik@apache.org>2005-05-03 13:23:34 +0000
commite57432b6dffe761f2a0f1bf6d61e7569c3fb05b6 (patch)
tree7da6d5cfa883d7639a75838be68e39e84a1dbc16 /src/testcases
parentcc58f19481f34bbd1f924d5e974c35a933fd5535 (diff)
downloadpoi-e57432b6dffe761f2a0f1bf6d61e7569c3fb05b6.tar.gz
poi-e57432b6dffe761f2a0f1bf6d61e7569c3fb05b6.zip
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
Diffstat (limited to 'src/testcases')
-rw-r--r--src/testcases/org/apache/poi/hssf/data/28772.xlsbin0 -> 27648 bytes
-rw-r--r--src/testcases/org/apache/poi/hssf/data/33082.xlsbin0 -> 28160 bytes
-rw-r--r--src/testcases/org/apache/poi/hssf/usermodel/TestUnfixedBugs.java71
3 files changed, 71 insertions, 0 deletions
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 0000000000..a5190de645
--- /dev/null
+++ b/src/testcases/org/apache/poi/hssf/data/28772.xls
Binary files 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 0000000000..74a2df4ded
--- /dev/null
+++ b/src/testcases/org/apache/poi/hssf/data/33082.xls
Binary files 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 0000000000..cd0e34f90b
--- /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);
+ }
+
+}