]> source.dussan.org Git - poi.git/commitdiff
updated tests without ReferenceUtil
authorAvik Sengupta <avik@apache.org>
Tue, 11 Jun 2002 20:20:41 +0000 (20:20 +0000)
committerAvik Sengupta <avik@apache.org>
Tue, 11 Jun 2002 20:20:41 +0000 (20:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352669 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java

index bd3784cc6717d3ccb92740e1770110c738bbbb53..bbb5194f372a9113e27007076d1970c42a0e0cd2 100644 (file)
@@ -62,7 +62,7 @@ import org.apache.poi.hssf.model.Sheet;
 import org.apache.poi.hssf.record.Record;
 import org.apache.poi.hssf.record.BOFRecord;
 import org.apache.poi.hssf.record.EOFRecord;
-import org.apache.poi.hssf.util.ReferenceUtil;
+import org.apache.poi.hssf.util.CellReference;
 
 import java.io.File;
 import java.io.FileInputStream;
@@ -344,8 +344,11 @@ extends TestCase {
                     refy2=(short)(y-3);
                 }
                 
-                ref = ReferenceUtil.getReferenceFromXY(refx1,refy1);                    
-                ref2 = ReferenceUtil.getReferenceFromXY(refx2,refy2);
+                c = r.getCell((short) y);
+                CellReference cr= new CellReference(refx1,refy1);
+                ref=cr.toString();
+                cr=new CellReference(refx2,refy2);
+                ref2=cr.toString();
 
                 c = r.createCell((short) y);
                 c.setCellFormula("" + ref + operator + ref2);
@@ -419,9 +422,10 @@ extends TestCase {
                 }
 
                 c = r.getCell((short) y);
-
-                ref = ReferenceUtil.getReferenceFromXY(refx1,refy1);                    
-                ref2 = ReferenceUtil.getReferenceFromXY(refx2,refy2);
+                CellReference cr= new CellReference(refx1,refy1);
+                ref=cr.toString();
+                cr=new CellReference(refx2,refy2);
+                ref2=cr.toString();
                 
                 
                 assertTrue("loop Formula is as expected "+ref+operator+ref2+"!="+c.getCellFormula(),(