diff options
author | Josh Micich <josh@apache.org> | 2008-09-18 21:22:23 +0000 |
---|---|---|
committer | Josh Micich <josh@apache.org> | 2008-09-18 21:22:23 +0000 |
commit | 1d568d4da328327821e73ea16273b23971a47da1 (patch) | |
tree | f051b3c04f962f09ddfb1b3b8a49062f22b64378 /src/testcases/org/apache/poi/hssf/eventusermodel | |
parent | caf9c54e021a2e65d6943762aea7eddabc7d7f0b (diff) | |
download | poi-1d568d4da328327821e73ea16273b23971a47da1.tar.gz poi-1d568d4da328327821e73ea16273b23971a47da1.zip |
Partitioning common formula logic. Introduced FormulaRenderingWorkbook interface to make merge with ooxml branch easier
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@696813 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/eventusermodel')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/eventusermodel/TestEventWorkbookBuilder.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testcases/org/apache/poi/hssf/eventusermodel/TestEventWorkbookBuilder.java b/src/testcases/org/apache/poi/hssf/eventusermodel/TestEventWorkbookBuilder.java index e88d274eac..a17414af74 100644 --- a/src/testcases/org/apache/poi/hssf/eventusermodel/TestEventWorkbookBuilder.java +++ b/src/testcases/org/apache/poi/hssf/eventusermodel/TestEventWorkbookBuilder.java @@ -32,6 +32,7 @@ import org.apache.poi.hssf.record.FormulaRecord; import org.apache.poi.hssf.record.Record; import org.apache.poi.hssf.record.formula.Ptg; import org.apache.poi.hssf.record.formula.Ref3DPtg; +import org.apache.poi.hssf.usermodel.HSSFEvaluationWorkbook; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.poifs.filesystem.POIFSFileSystem; /** @@ -110,7 +111,8 @@ public final class TestEventWorkbookBuilder extends TestCase { assertTrue(ptgs[0] instanceof Ref3DPtg); Ref3DPtg ptg = (Ref3DPtg)ptgs[0]; - assertEquals("Sheet1!A1", ptg.toFormulaString(stubHSSF)); + HSSFEvaluationWorkbook book = HSSFEvaluationWorkbook.create(stubHSSF); + assertEquals("Sheet1!A1", ptg.toFormulaString(book)); // Now check we get the right formula back for |