diff options
author | Josh Micich <josh@apache.org> | 2009-12-08 21:48:54 +0000 |
---|---|---|
committer | Josh Micich <josh@apache.org> | 2009-12-08 21:48:54 +0000 |
commit | 78df947523f5cc72fc88cf12e22ed2ffb3abdf8a (patch) | |
tree | 0eda14f39c0bf8c208301edacf64af8b0448489c /src/testcases | |
parent | 81354b64ec8a4d563b7b941a9c0e4b73039154e9 (diff) | |
download | poi-78df947523f5cc72fc88cf12e22ed2ffb3abdf8a.tar.gz poi-78df947523f5cc72fc88cf12e22ed2ffb3abdf8a.zip |
Renamed AreaEval method from getValueAt() to getAbsoluteValue()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@888582 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/record/formula/eval/TestAreaEval.java | 21 |
1 files changed, 10 insertions, 11 deletions
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 <tt>AreaEval</tt> - * + * * @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); } - } |