diff options
author | Nick Burch <nick@apache.org> | 2009-12-26 19:57:09 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2009-12-26 19:57:09 +0000 |
commit | 0e9861932ae265f44c61d9a767d070941b5b6eb6 (patch) | |
tree | ae46aae60578e30f4eee89b6902a3169efae2542 /src/testcases/org/apache/poi/hssf/eventusermodel | |
parent | f1909f578d931b504cd290e4cca585accaa6f3ac (diff) | |
download | poi-0e9861932ae265f44c61d9a767d070941b5b6eb6.tar.gz poi-0e9861932ae265f44c61d9a767d070941b5b6eb6.zip |
More work on FeatRecord/Shared Features. More is still needed though, it's still WIP
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@894018 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/TestHSSFEventFactory.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/testcases/org/apache/poi/hssf/eventusermodel/TestHSSFEventFactory.java b/src/testcases/org/apache/poi/hssf/eventusermodel/TestHSSFEventFactory.java index 74e1ceb4a5..9766331085 100644 --- a/src/testcases/org/apache/poi/hssf/eventusermodel/TestHSSFEventFactory.java +++ b/src/testcases/org/apache/poi/hssf/eventusermodel/TestHSSFEventFactory.java @@ -27,6 +27,7 @@ import org.apache.poi.hssf.record.ContinueRecord; import org.apache.poi.hssf.record.DVALRecord; import org.apache.poi.hssf.record.DVRecord; import org.apache.poi.hssf.record.EOFRecord; +import org.apache.poi.hssf.record.FeatHdrRecord; import org.apache.poi.hssf.record.Record; import org.apache.poi.hssf.record.SelectionRecord; import org.apache.poi.hssf.record.WindowTwoRecord; @@ -86,9 +87,10 @@ public final class TestHSSFEventFactory extends TestCase { // Check that the last few records are as we expect // (Makes sure we don't accidently skip the end ones) int numRec = recs.length; - assertEquals(DVALRecord.class, recs[numRec-3].getClass()); - assertEquals(DVRecord.class, recs[numRec-2].getClass()); - assertEquals(EOFRecord.class, recs[numRec-1].getClass()); + assertEquals(DVALRecord.class, recs[numRec-4].getClass()); + assertEquals(DVRecord.class, recs[numRec-3].getClass()); + assertEquals(FeatHdrRecord.class, recs[numRec-2].getClass()); + assertEquals(EOFRecord.class, recs[numRec-1].getClass()); } /** @@ -110,7 +112,7 @@ public final class TestHSSFEventFactory extends TestCase { } private static class MockHSSFListener implements HSSFListener { - private final List records = new ArrayList(); + private final List<Record> records = new ArrayList<Record>(); public MockHSSFListener() {} public Record[] getRecords() { |