From 6299c25b80aa5b704c60c07a229dbb90ac8cc10d Mon Sep 17 00:00:00 2001 From: Yegor Kozlov Date: Sat, 11 Apr 2009 14:15:27 +0000 Subject: 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 --- src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java | 4 ++-- src/testcases/org/apache/poi/hssf/util/TestAreaReference.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/testcases/org/apache/poi/hssf') 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()); -- cgit v1.2.3