poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject cvs commit: jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel TestUnfixedBugs.java
Date Tue, 03 May 2005 13:23:34 GMT
avik        2005/05/03 06:23:34

  Modified:    .        build.xml
  Added:       src/testcases/org/apache/poi/hssf/data 28772.xls 33082.xls
               src/testcases/org/apache/poi/hssf/usermodel
                        TestUnfixedBugs.java
  Log:
  unfixed testcases, so you know what to fix :)
  
  Revision  Changes    Path
  1.68      +2 -0      jakarta-poi/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/build.xml,v
  retrieving revision 1.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- build.xml	1 May 2005 11:26:18 -0000	1.67
  +++ build.xml	3 May 2005 13:23:34 -0000	1.68
  @@ -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>
   
  
  
  
  1.1                  jakarta-poi/src/testcases/org/apache/poi/hssf/data/28772.xls
  
  	<<Binary file>>
  
  
  1.1                  jakarta-poi/src/testcases/org/apache/poi/hssf/data/33082.xls
  
  	<<Binary file>>
  
  
  1.1                  jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestUnfixedBugs.java
  
  Index: TestUnfixedBugs.java
  ===================================================================
  /* ====================================================================
  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);
  	   }
  
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


Mime
View raw message