From 3968fc12097ecc826aa9ff599e393e31a5909732 Mon Sep 17 00:00:00 2001 From: "Amol S. Deshmukh" Date: Sun, 26 Nov 2006 06:11:36 +0000 Subject: [PATCH] replaced use of deprecated calls to get string value from cell git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@479287 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/hssf/record/formula/eval/GenericFormulaTestCase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scratchpad/testcases/org/apache/poi/hssf/record/formula/eval/GenericFormulaTestCase.java b/src/scratchpad/testcases/org/apache/poi/hssf/record/formula/eval/GenericFormulaTestCase.java index 95a67bc67b..f3d734b577 100644 --- a/src/scratchpad/testcases/org/apache/poi/hssf/record/formula/eval/GenericFormulaTestCase.java +++ b/src/scratchpad/testcases/org/apache/poi/hssf/record/formula/eval/GenericFormulaTestCase.java @@ -51,7 +51,7 @@ public class GenericFormulaTestCase extends TestCase { protected void assertEquals(String msg, HSSFCell expected, HSSFFormulaEvaluator.CellValue actual) { if (expected != null && actual!=null) { if (expected!=null && expected.getCellType() == HSSFCell.CELL_TYPE_STRING) { - String value = expected.getStringCellValue(); + String value = expected.getRichStringCellValue().getString(); if (value.startsWith("#")) { expected.setCellType(HSSFCell.CELL_TYPE_ERROR); } @@ -79,7 +79,7 @@ public class GenericFormulaTestCase extends TestCase { break; case HSSFCell.CELL_TYPE_STRING: assertEquals(msg, HSSFCell.CELL_TYPE_STRING, actual.getCellType()); - assertEquals(msg, expected.getStringCellValue(), actual.getStringValue()); + assertEquals(msg, expected.getRichStringCellValue().getString(), actual.getRichTextStringValue().getString()); break; } } -- 2.39.5