aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2009-04-11 14:15:27 +0000
committerYegor Kozlov <yegor@apache.org>2009-04-11 14:15:27 +0000
commit6299c25b80aa5b704c60c07a229dbb90ac8cc10d (patch)
tree939593089821b44efd782afef0ef442fcb5c0616 /src/testcases/org/apache/poi/hssf
parent7e32bc95627d3980aa187d11f187e1bbb99d7f46 (diff)
downloadpoi-6299c25b80aa5b704c60c07a229dbb90ac8cc10d.tar.gz
poi-6299c25b80aa5b704c60c07a229dbb90ac8cc10d.zip
removed unused imports of deprecated classes, fixed javadoc errors
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@764203 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf')
-rw-r--r--src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java4
-rw-r--r--src/testcases/org/apache/poi/hssf/util/TestAreaReference.java6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java b/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java
index c38a555edd..3281b5115a 100644
--- a/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java
+++ b/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java
@@ -859,7 +859,7 @@ public final class TestFormulas extends TestCase {
public void test27272_1() throws Exception {
HSSFWorkbook wb = openSample("27272_1.xls");
wb.getSheetAt(0);
- assertEquals("Reference for named range ", "Compliance!#REF!",wb.getNameAt(0).getReference());
+ assertEquals("Reference for named range ", "Compliance!#REF!",wb.getNameAt(0).getRefersToFormula());
File outF = File.createTempFile("bug27272_1",".xls");
wb.write(new FileOutputStream(outF));
System.out.println("Open "+outF.getAbsolutePath()+" in Excel");
@@ -867,7 +867,7 @@ public final class TestFormulas extends TestCase {
/** Unknown Ptg 3D*/
public void test27272_2() throws Exception {
HSSFWorkbook wb = openSample("27272_2.xls");
- assertEquals("Reference for named range ", "LOAD.POD_HISTORIES!#REF!",wb.getNameAt(0).getReference());
+ assertEquals("Reference for named range ", "LOAD.POD_HISTORIES!#REF!",wb.getNameAt(0).getRefersToFormula());
File outF = File.createTempFile("bug27272_2",".xls");
wb.write(new FileOutputStream(outF));
System.out.println("Open "+outF.getAbsolutePath()+" in Excel");
diff --git a/src/testcases/org/apache/poi/hssf/util/TestAreaReference.java b/src/testcases/org/apache/poi/hssf/util/TestAreaReference.java
index 2de4c9c1ca..4a15ac0eee 100644
--- a/src/testcases/org/apache/poi/hssf/util/TestAreaReference.java
+++ b/src/testcases/org/apache/poi/hssf/util/TestAreaReference.java
@@ -230,11 +230,11 @@ public final class TestAreaReference extends TestCase {
HSSFName aNamedCell = wb.getNameAt(idx);
// Should have 2 references
- assertEquals(ref, aNamedCell.getReference());
+ assertEquals(ref, aNamedCell.getRefersToFormula());
// Check the parsing of the reference into cells
- assertFalse(AreaReference.isContiguous(aNamedCell.getReference()));
- AreaReference[] arefs = AreaReference.generateContiguous(aNamedCell.getReference());
+ assertFalse(AreaReference.isContiguous(aNamedCell.getRefersToFormula()));
+ AreaReference[] arefs = AreaReference.generateContiguous(aNamedCell.getRefersToFormula());
assertEquals(2, arefs.length);
assertEquals(refA, arefs[0].formatAsString());
assertEquals(refB, arefs[1].formatAsString());