mirror of https://github.com/apache/poi.git
try to fix test compile
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1879256 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
38e58f1ead
commit
e43cbf5d46
|
@ -248,9 +248,7 @@ public final class TestAreaReference {
|
||||||
assertEquals(ref, HSSFFormulaParser.toFormulaString(wb, nr.getNameDefinition()));
|
assertEquals(ref, HSSFFormulaParser.toFormulaString(wb, nr.getNameDefinition()));
|
||||||
|
|
||||||
// Check the high level definition
|
// Check the high level definition
|
||||||
int idx = wb.getNameIndex("test");
|
HSSFName aNamedCell = wb.getName("test");
|
||||||
assertEquals(0, idx);
|
|
||||||
HSSFName aNamedCell = wb.getNameAt(idx);
|
|
||||||
|
|
||||||
// Should have 2 references
|
// Should have 2 references
|
||||||
String formulaRefs = aNamedCell.getRefersToFormula();
|
String formulaRefs = aNamedCell.getRefersToFormula();
|
||||||
|
|
|
@ -687,9 +687,9 @@ public abstract class BaseTestWorkbook {
|
||||||
|
|
||||||
Sheet sh1 = wb1.getSheetAt(0);
|
Sheet sh1 = wb1.getSheetAt(0);
|
||||||
|
|
||||||
Name sale_2 = wb1.getNameAt(1);
|
Name sale_2 = wb1.getName("sale_2");
|
||||||
Name sale_3 = wb1.getNameAt(2);
|
Name sale_3 = wb1.getName("sale_3");
|
||||||
Name sale_4 = wb1.getNameAt(3);
|
Name sale_4 = wb1.getName("sale_4");
|
||||||
|
|
||||||
assertEquals("sale_2", sale_2.getNameName());
|
assertEquals("sale_2", sale_2.getNameName());
|
||||||
assertEquals("'Testing 47100'!$A$1", sale_2.getRefersToFormula());
|
assertEquals("'Testing 47100'!$A$1", sale_2.getRefersToFormula());
|
||||||
|
@ -736,9 +736,9 @@ public abstract class BaseTestWorkbook {
|
||||||
|
|
||||||
sh1 = wb2.getSheetAt(0);
|
sh1 = wb2.getSheetAt(0);
|
||||||
|
|
||||||
sale_2 = wb2.getNameAt(1);
|
sale_2 = wb2.getName("sale_2");
|
||||||
sale_3 = wb2.getNameAt(2);
|
sale_3 = wb2.getName("sale_3");
|
||||||
sale_4 = wb2.getNameAt(3);
|
sale_4 = wb2.getName("sale_4");
|
||||||
|
|
||||||
cell0 = sh1.getRow(0).getCell(0);
|
cell0 = sh1.getRow(0).getCell(0);
|
||||||
cell1 = sh1.getRow(1).getCell(0);
|
cell1 = sh1.getRow(1).getCell(0);
|
||||||
|
|
Loading…
Reference in New Issue