From 78df947523f5cc72fc88cf12e22ed2ffb3abdf8a Mon Sep 17 00:00:00 2001 From: Josh Micich Date: Tue, 8 Dec 2009 21:48:54 +0000 Subject: Renamed AreaEval method from getValueAt() to getAbsoluteValue() git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@888582 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/hssf/record/formula/eval/TestAreaEval.java | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'src/testcases') diff --git a/src/testcases/org/apache/poi/hssf/record/formula/eval/TestAreaEval.java b/src/testcases/org/apache/poi/hssf/record/formula/eval/TestAreaEval.java index 71d15745e9..65e4e7d411 100644 --- a/src/testcases/org/apache/poi/hssf/record/formula/eval/TestAreaEval.java +++ b/src/testcases/org/apache/poi/hssf/record/formula/eval/TestAreaEval.java @@ -25,7 +25,7 @@ import org.apache.poi.hssf.record.formula.functions.EvalFactory; /** * Tests for AreaEval - * + * * @author Josh Micich */ public final class TestAreaEval extends TestCase { @@ -35,15 +35,15 @@ public final class TestAreaEval extends TestCase { AreaPtg ptg = new AreaPtg("B2:D3"); NumberEval one = new NumberEval(1); ValueEval[] values = { - one, - new NumberEval(2), - new NumberEval(3), - new NumberEval(4), - new NumberEval(5), - new NumberEval(6), + one, + new NumberEval(2), + new NumberEval(3), + new NumberEval(4), + new NumberEval(5), + new NumberEval(6), }; AreaEval ae = EvalFactory.createAreaEval(ptg, values); - if (one == ae.getValueAt(1, 2)) { + if (one == ae.getAbsoluteValue(1, 2)) { throw new AssertionFailedError("Identified bug 44950 a"); } confirm(1, ae, 1, 1); @@ -52,12 +52,11 @@ public final class TestAreaEval extends TestCase { confirm(4, ae, 2, 1); confirm(5, ae, 2, 2); confirm(6, ae, 2, 3); - + } private static void confirm(int expectedValue, AreaEval ae, int row, int col) { - NumberEval v = (NumberEval) ae.getValueAt(row, col); + NumberEval v = (NumberEval) ae.getAbsoluteValue(row, col); assertEquals(expectedValue, v.getNumberValue(), 0.0); } - } -- cgit v1.2.3