aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf/eventmodel
diff options
context:
space:
mode:
authorJason Height <jheight@apache.org>2005-08-18 07:06:44 +0000
committerJason Height <jheight@apache.org>2005-08-18 07:06:44 +0000
commitada69333b277a95ccfc608144b991cfd8d1a9d37 (patch)
tree824f57aa008b9d2e526fbffb23fcf40aa3e7e19a /src/testcases/org/apache/poi/hssf/eventmodel
parentc4fea20971ac2efc7766f88e546924dadaa7959a (diff)
downloadpoi-ada69333b277a95ccfc608144b991cfd8d1a9d37.tar.gz
poi-ada69333b277a95ccfc608144b991cfd8d1a9d37.zip
Major landing of the following changes:
1) Full implementation of UnicodeStrings 2) exposure of RichText strings to the usermodel 3) Modification to SSTRecord to support duplicates. Fixes a few bugs 4) RecordInputStream *smart* ?? handeling of continue records! Phew This took 6 months on and off to put together. Just happy to commit somethig Report any problems! git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353769 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/eventmodel')
-rw-r--r--src/testcases/org/apache/poi/hssf/eventmodel/TestEventRecordFactory.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testcases/org/apache/poi/hssf/eventmodel/TestEventRecordFactory.java b/src/testcases/org/apache/poi/hssf/eventmodel/TestEventRecordFactory.java
index 4d59c28d24..eae4aace9f 100644
--- a/src/testcases/org/apache/poi/hssf/eventmodel/TestEventRecordFactory.java
+++ b/src/testcases/org/apache/poi/hssf/eventmodel/TestEventRecordFactory.java
@@ -26,6 +26,7 @@ import org.apache.poi.hssf.record.EOFRecord;
import org.apache.poi.hssf.record.Record;
import org.apache.poi.hssf.record.UnknownRecord;
import org.apache.poi.hssf.record.ContinueRecord;
+import org.apache.poi.hssf.record.TestcaseRecordInputStream;
import junit.framework.TestCase;
@@ -149,7 +150,7 @@ public class TestEventRecordFactory extends TestCase
nbytes = new byte[bytes.length - 4];
System.arraycopy(bytes,4,nbytes,0,nbytes.length);
- records = factory.createRecord(bof.getSid(),(short)nbytes.length,nbytes);
+ records = factory.createRecord(new TestcaseRecordInputStream(bof.getSid(),(short)nbytes.length,nbytes));
assertTrue("record.length must be 1, was ="+records.length,records.length == 1);
assertTrue("record is the same", compareRec(bof,records[0]));