poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r479287 - /jakarta/poi/trunk/src/scratchpad/testcases/org/apache/poi/hssf/record/formula/eval/GenericFormulaTestCase.java
Date Sun, 26 Nov 2006 06:11:37 GMT
Author: amol
Date: Sat Nov 25 22:11:36 2006
New Revision: 479287

URL: http://svn.apache.org/viewvc?view=rev&rev=479287
Log:
replaced use of deprecated calls to get string value from cell

Modified:
    jakarta/poi/trunk/src/scratchpad/testcases/org/apache/poi/hssf/record/formula/eval/GenericFormulaTestCase.java

Modified: jakarta/poi/trunk/src/scratchpad/testcases/org/apache/poi/hssf/record/formula/eval/GenericFormulaTestCase.java
URL: http://svn.apache.org/viewvc/jakarta/poi/trunk/src/scratchpad/testcases/org/apache/poi/hssf/record/formula/eval/GenericFormulaTestCase.java?view=diff&rev=479287&r1=479286&r2=479287
==============================================================================
--- jakarta/poi/trunk/src/scratchpad/testcases/org/apache/poi/hssf/record/formula/eval/GenericFormulaTestCase.java
(original)
+++ jakarta/poi/trunk/src/scratchpad/testcases/org/apache/poi/hssf/record/formula/eval/GenericFormulaTestCase.java
Sat Nov 25 22:11:36 2006
@@ -51,7 +51,7 @@
     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 @@
                     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;
                 }
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


Mime
View raw message