diff options
author | Josh Micich <josh@apache.org> | 2009-12-22 00:51:29 +0000 |
---|---|---|
committer | Josh Micich <josh@apache.org> | 2009-12-22 00:51:29 +0000 |
commit | 1fd52310cd92e6c426950d8045aafe3fb0d0ea6a (patch) | |
tree | 68995a5448799750ce7db91594de9525dfdcb7fa /src/testcases/org/apache/poi/hssf/model | |
parent | 66d86cb8dab832860b4dc8c23d4059f395960860 (diff) | |
download | poi-1fd52310cd92e6c426950d8045aafe3fb0d0ea6a.tar.gz poi-1fd52310cd92e6c426950d8045aafe3fb0d0ea6a.zip |
Renamed model.Workbook to InternalWorkbook to alleviate name clash.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@893050 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/TestWorkbook.java | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/testcases/org/apache/poi/hssf/model/TestWorkbook.java b/src/testcases/org/apache/poi/hssf/model/TestWorkbook.java index c7939e33a5..d6f1e7c90b 100644 --- a/src/testcases/org/apache/poi/hssf/model/TestWorkbook.java +++ b/src/testcases/org/apache/poi/hssf/model/TestWorkbook.java @@ -17,10 +17,11 @@ package org.apache.poi.hssf.model; +import junit.framework.TestCase; + import org.apache.poi.hssf.record.FontRecord; import org.apache.poi.hssf.usermodel.HSSFWorkbook; - -import junit.framework.TestCase; +import org.apache.poi.hssf.usermodel.TestHSSFWorkbook; /** * Unit test for the Workbook class. @@ -29,7 +30,7 @@ import junit.framework.TestCase; */ public final class TestWorkbook extends TestCase { public void testFontStuff() { - Workbook wb = (new HW()).getWorkbook(); + InternalWorkbook wb = TestHSSFWorkbook.getInternalWorkbook(new HSSFWorkbook()); assertEquals(4, wb.getNumberOfFontRecords()); assertEquals(68, wb.getRecords().size()); @@ -82,13 +83,4 @@ public final class TestWorkbook extends TestCase { assertEquals(6, wb.getFontIndex(n7)); assertEquals(n7, wb.getFontRecordAt(6)); } - - private static final class HW extends HSSFWorkbook { - public HW() { - super(); - } - protected Workbook getWorkbook() { - return super.getWorkbook(); - } - } } |