]> source.dussan.org Git - poi.git/commitdiff
remove deprecated ErrorConstants usage in TestWorkbookEvaluator
authorJaven O'Neal <onealj@apache.org>
Fri, 6 Nov 2015 04:58:35 +0000 (04:58 +0000)
committerJaven O'Neal <onealj@apache.org>
Fri, 6 Nov 2015 04:58:35 +0000 (04:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1712910 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/ss/formula/TestWorkbookEvaluator.java

index b28b7c68df1ed3ed503a7d06a29e2c3f593ed330..3872c7dfae0f25dbd9d30b2c14f03c58696828eb 100644 (file)
@@ -44,7 +44,6 @@ import org.apache.poi.hssf.usermodel.HSSFSheet;
 import org.apache.poi.hssf.usermodel.HSSFWorkbook;
 import org.apache.poi.ss.usermodel.Cell;
 import org.apache.poi.ss.usermodel.CellValue;
-import org.apache.poi.ss.usermodel.ErrorConstants;
 import org.apache.poi.ss.usermodel.FormulaEvaluator;
 import org.apache.poi.ss.usermodel.Name;
 import org.apache.poi.ss.usermodel.Row;
@@ -243,7 +242,7 @@ public class TestWorkbookEvaluator {
                 throw new RuntimeException(e);
             }
             assertEquals(Cell.CELL_TYPE_ERROR, cv.getCellType());
-            assertEquals(ErrorConstants.ERROR_VALUE, cv.getErrorValue());
+            assertEquals(ErrorEval.VALUE_INVALID.getErrorCode(), cv.getErrorValue());
 
             // verify circular refs are still detected properly
             fe.clearAllCachedResultValues();