From: Avik Sengupta Date: Tue, 11 Jun 2002 20:20:41 +0000 (+0000) Subject: updated tests without ReferenceUtil X-Git-Tag: REL_1_10~335 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3ceb62dda8695b847596bf2a264c3888268e5859;p=poi.git updated tests without ReferenceUtil git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352669 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java b/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java index bd3784cc67..bbb5194f37 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java @@ -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(),(