diff options
author | Josh Micich <josh@apache.org> | 2008-10-10 22:59:14 +0000 |
---|---|---|
committer | Josh Micich <josh@apache.org> | 2008-10-10 22:59:14 +0000 |
commit | 25f26a82f7c607987a6b17002553624bd91c4caf (patch) | |
tree | 9b4ea84796181d4ded43cc3840904b7323bcf563 /src/testcases/org/apache/poi/hssf/eventmodel | |
parent | 91c8480933a42e15df91d3c2fecf7fee3deaa6c7 (diff) | |
download | poi-25f26a82f7c607987a6b17002553624bd91c4caf.tar.gz poi-25f26a82f7c607987a6b17002553624bd91c4caf.zip |
Made RecordInputStream final (major clean-up in test cases and BiffViewer)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@703596 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.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/testcases/org/apache/poi/hssf/eventmodel/TestEventRecordFactory.java b/src/testcases/org/apache/poi/hssf/eventmodel/TestEventRecordFactory.java index 88f620ca44..8825fed700 100644 --- a/src/testcases/org/apache/poi/hssf/eventmodel/TestEventRecordFactory.java +++ b/src/testcases/org/apache/poi/hssf/eventmodel/TestEventRecordFactory.java @@ -87,10 +87,8 @@ public final class TestEventRecordFactory extends TestCase { bof.setHistoryBitMask(BOFRecord.HISTORY_MASK); byte[] bytes = bof.serialize(); - byte[] nbytes = new byte[bytes.length - 4]; - System.arraycopy(bytes,4,nbytes,0,nbytes.length); - Record[] records = RecordFactory.createRecord(new TestcaseRecordInputStream(bof.getSid(),(short)nbytes.length,nbytes)); + Record[] records = RecordFactory.createRecord(TestcaseRecordInputStream.create(bytes)); assertTrue("record.length must be 1, was ="+records.length,records.length == 1); assertTrue("record is the same", compareRec(bof,records[0])); |