aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf/util
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2020-06-27 09:53:11 +0000
committerPJ Fanning <fanningpj@apache.org>2020-06-27 09:53:11 +0000
commite43cbf5d46424942112e82f8573ae3c2a5823fee (patch)
treeb4d1196bccb2e15ad616e6495dbba5b7774d304e /src/testcases/org/apache/poi/hssf/util
parent38e58f1ead7ff22c7095d1f9f0c71196739467cd (diff)
downloadpoi-e43cbf5d46424942112e82f8573ae3c2a5823fee.tar.gz
poi-e43cbf5d46424942112e82f8573ae3c2a5823fee.zip
try to fix test compile
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1879256 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/util')
-rw-r--r--src/testcases/org/apache/poi/hssf/util/TestAreaReference.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/testcases/org/apache/poi/hssf/util/TestAreaReference.java b/src/testcases/org/apache/poi/hssf/util/TestAreaReference.java
index 0870a011cc..fddd1e7603 100644
--- a/src/testcases/org/apache/poi/hssf/util/TestAreaReference.java
+++ b/src/testcases/org/apache/poi/hssf/util/TestAreaReference.java
@@ -248,9 +248,7 @@ public final class TestAreaReference {
assertEquals(ref, HSSFFormulaParser.toFormulaString(wb, nr.getNameDefinition()));
// Check the high level definition
- int idx = wb.getNameIndex("test");
- assertEquals(0, idx);
- HSSFName aNamedCell = wb.getNameAt(idx);
+ HSSFName aNamedCell = wb.getName("test");
// Should have 2 references
String formulaRefs = aNamedCell.getRefersToFormula();