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 TestBugs.java
Date Mon, 27 Oct 2003 03:43:16 GMT
avik        2003/10/26 19:43:16

  Modified:    src/testcases/org/apache/poi/hssf/usermodel TestBugs.java
  Added:       src/testcases/org/apache/poi/hssf/data 12561-1.xls
                        12561-2.xls 13224.xls 15556.xls 22742.xls
  Log:
  Testcases.. Testcases! for bug 13224 and all double byte read errors
  
  Revision  Changes    Path
  1.2       +478 -0    jakarta-poi/src/testcases/org/apache/poi/hssf/data/12561-1.xls
  
  	<<Binary file>>
  
  
  1.2       +1436 -0   jakarta-poi/src/testcases/org/apache/poi/hssf/data/12561-2.xls
  
  	<<Binary file>>
  
  
  1.2       +8 -0      jakarta-poi/src/testcases/org/apache/poi/hssf/data/13224.xls
  
  	<<Binary file>>
  
  
  1.2       +1677 -0   jakarta-poi/src/testcases/org/apache/poi/hssf/data/15556.xls
  
  	<<Binary file>>
  
  
  1.2       +1148 -0   jakarta-poi/src/testcases/org/apache/poi/hssf/data/22742.xls
  
  	<<Binary file>>
  
  
  1.9       +54 -1     jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
  
  Index: TestBugs.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- TestBugs.java	9 Oct 2003 15:21:15 -0000	1.8
  +++ TestBugs.java	27 Oct 2003 03:43:16 -0000	1.9
  @@ -250,7 +250,7 @@
              
              HSSFWorkbook wb = new HSSFWorkbook() ;
              HSSFSheet sheet = wb.createSheet("ExcelTest") ;
  -           
  +         
              int col_cnt=0, rw_cnt=0 ;
              
              col_cnt = c;
  @@ -287,6 +287,59 @@
                  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);
  +
  +    }
   }
       
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org


Mime
View raw message