avik        2003/07/31 12:59:49

  Modified:    src/testcases/org/apache/poi/hssf/usermodel Tag:
                        REL_2_BRANCH TestBugs.java
  Added:       src/testcases/org/apache/poi/hssf/data Tag: REL_2_BRANCH
                        13796.xls
  Log:
  Testcase for bug 13769 .. thanks michael tosdevin
  the bug has already been fixed in 2.0pre3
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +85 -0     
jakarta-poi/src/testcases/org/apache/poi/hssf/data/Attic/13796.xls
  
        <<Binary file>>
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +20 -0     
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.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- TestBugs.java     25 Jul 2003 18:22:20 -0000      1.1.2.1
  +++ TestBugs.java     31 Jul 2003 19:59:49 -0000      1.1.2.2
  @@ -91,6 +91,26 @@
             assertTrue("File Should Exist", file.exists());
               
       }
  +          
  +                 public void test13796()
  +        throws java.io.IOException
  +    {
  +         String readFilename = System.getProperty("HSSF.testdata.path");
  +          FileInputStream in = new 
FileInputStream(readFilename+File.separator+"13796.xls");
  +          HSSFWorkbook wb = new HSSFWorkbook(in);
  +          HSSFSheet s = wb.getSheetAt(0);
  +          HSSFRow r = s.createRow(0);
  +          HSSFCell c = r.createCell((short)0);
  +          c.setCellValue(10);
  +          File file = File.createTempFile("test13796",".xls");
  +          FileOutputStream out    = new FileOutputStream(file);
  +          wb.write(out);
  +          assertTrue("No exception thrown", true); 
  +          assertTrue("File Should Exist", file.exists());
  +            
  +    }
  +          
  +          
       
   }
       
  
  
  

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

Reply via email to