You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by av...@apache.org on 2005/04/22 15:12:14 UTC

cvs commit: jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel TestFormulas.java

avik        2005/04/22 06:12:14

  Modified:    src/testcases/org/apache/poi/hssf/usermodel
                        TestFormulas.java
  Log:
  testcase for bug 34021 , already worked fine
  
  Revision  Changes    Path
  1.36      +10 -0     jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java
  
  Index: TestFormulas.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- TestFormulas.java	12 Oct 2004 05:49:01 -0000	1.35
  +++ TestFormulas.java	22 Apr 2005 13:12:14 -0000	1.36
  @@ -1084,6 +1084,16 @@
           assertEquals("String Cell value","XYZ",c.getStringCellValue());
       }
       
  +    /** test for bug 34021*/
  +    public void testComplexSheetRefs () throws IOException {
  +    	HSSFWorkbook sb = new HSSFWorkbook();
  +    	 HSSFSheet s1 = sb.createSheet("Sheet a.1");
  +    	 HSSFSheet s2 = sb.createSheet("Sheet.A");
  +    	 s2.createRow(1).createCell((short) 2).setCellFormula("'Sheet a.1'!A1");
  +    	 s1.createRow(1).createCell((short) 2).setCellFormula("'Sheet.A'!A1");
  +    	 File file = TempFile.createTempFile("testComplexSheetRefs",".xls");
  +    	 sb.write(new FileOutputStream(file));
  +    }
       public static void main(String [] args) {
           System.out
           .println("Testing org.apache.poi.hssf.usermodel.TestFormulas");
  
  
  

---------------------------------------------------------------------
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/