mirror of https://github.com/apache/poi.git
updated tests without ReferenceUtil
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352669 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
37d2daa9e9
commit
3ceb62dda8
|
@ -62,7 +62,7 @@ import org.apache.poi.hssf.model.Sheet;
|
||||||
import org.apache.poi.hssf.record.Record;
|
import org.apache.poi.hssf.record.Record;
|
||||||
import org.apache.poi.hssf.record.BOFRecord;
|
import org.apache.poi.hssf.record.BOFRecord;
|
||||||
import org.apache.poi.hssf.record.EOFRecord;
|
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.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
|
@ -344,8 +344,11 @@ extends TestCase {
|
||||||
refy2=(short)(y-3);
|
refy2=(short)(y-3);
|
||||||
}
|
}
|
||||||
|
|
||||||
ref = ReferenceUtil.getReferenceFromXY(refx1,refy1);
|
c = r.getCell((short) y);
|
||||||
ref2 = ReferenceUtil.getReferenceFromXY(refx2,refy2);
|
CellReference cr= new CellReference(refx1,refy1);
|
||||||
|
ref=cr.toString();
|
||||||
|
cr=new CellReference(refx2,refy2);
|
||||||
|
ref2=cr.toString();
|
||||||
|
|
||||||
c = r.createCell((short) y);
|
c = r.createCell((short) y);
|
||||||
c.setCellFormula("" + ref + operator + ref2);
|
c.setCellFormula("" + ref + operator + ref2);
|
||||||
|
@ -419,9 +422,10 @@ extends TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
c = r.getCell((short) y);
|
c = r.getCell((short) y);
|
||||||
|
CellReference cr= new CellReference(refx1,refy1);
|
||||||
ref = ReferenceUtil.getReferenceFromXY(refx1,refy1);
|
ref=cr.toString();
|
||||||
ref2 = ReferenceUtil.getReferenceFromXY(refx2,refy2);
|
cr=new CellReference(refx2,refy2);
|
||||||
|
ref2=cr.toString();
|
||||||
|
|
||||||
|
|
||||||
assertTrue("loop Formula is as expected "+ref+operator+ref2+"!="+c.getCellFormula(),(
|
assertTrue("loop Formula is as expected "+ref+operator+ref2+"!="+c.getCellFormula(),(
|
||||||
|
|
Loading…
Reference in New Issue