aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf/model
diff options
context:
space:
mode:
authorJaven O'Neal <onealj@apache.org>2015-11-02 02:22:03 +0000
committerJaven O'Neal <onealj@apache.org>2015-11-02 02:22:03 +0000
commitde13fd818ac4bf3b6b12a6195f984dd91cad364b (patch)
tree72d39853ecaf5f5abdb78978f26073203c12490c /src/testcases/org/apache/poi/hssf/model
parentb9da1f9da00d1a4c2ad5ee50230010081d1253eb (diff)
downloadpoi-de13fd818ac4bf3b6b12a6195f984dd91cad364b.tar.gz
poi-de13fd818ac4bf3b6b12a6195f984dd91cad364b.zip
replace deprecated usage of FormulaShifter.createForRowShift
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1711879 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/model')
-rw-r--r--src/testcases/org/apache/poi/hssf/model/TestSheet.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testcases/org/apache/poi/hssf/model/TestSheet.java b/src/testcases/org/apache/poi/hssf/model/TestSheet.java
index 9699788291..fca517d23e 100644
--- a/src/testcases/org/apache/poi/hssf/model/TestSheet.java
+++ b/src/testcases/org/apache/poi/hssf/model/TestSheet.java
@@ -62,6 +62,7 @@ import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.hssf.usermodel.RecordInspector.RecordCollector;
+import org.apache.poi.ss.SpreadsheetVersion;
import org.apache.poi.ss.formula.FormulaShifter;
import org.apache.poi.ss.util.CellRangeAddress;
import org.apache.poi.util.HexRead;
@@ -680,7 +681,7 @@ public final class TestSheet {
List<RecordBase> sheetRecs = sheet.getRecords();
assertEquals(23, sheetRecs.size());
- FormulaShifter shifter = FormulaShifter.createForRowShift(0, "", 0, 0, 1);
+ FormulaShifter shifter = FormulaShifter.createForRowShift(0, "", 0, 0, 1, SpreadsheetVersion.EXCEL97);
sheet.updateFormulasAfterCellShift(shifter, 0);
if (sheetRecs.size() == 24 && sheetRecs.get(22) instanceof ConditionalFormattingTable) {
throw new AssertionFailedError("Identified bug 46547a");