From 8ff8c4733cef096ffbd96b06ed430febbdbd6eab Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Wed, 20 Jun 2007 13:58:14 +0000 Subject: [PATCH] Tweak test to match last V11 related change git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@549111 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hdgf/chunks/TestChunks.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/scratchpad/testcases/org/apache/poi/hdgf/chunks/TestChunks.java b/src/scratchpad/testcases/org/apache/poi/hdgf/chunks/TestChunks.java index 412d58e0d..b19b1395a 100644 --- a/src/scratchpad/testcases/org/apache/poi/hdgf/chunks/TestChunks.java +++ b/src/scratchpad/testcases/org/apache/poi/hdgf/chunks/TestChunks.java @@ -151,10 +151,23 @@ public static final byte[] data_b = new byte[] { 70, 0, 0, 0, assertNotNull(chunk.getSeparator()); offset += chunk.getOnDiskSize(); + // Has a separator but no trailer chunk = cf.createChunk(data_a, offset); assertNotNull(chunk.getHeader()); assertNull(chunk.getTrailer()); - assertNull(chunk.getSeparator()); + assertNotNull(chunk.getSeparator()); + offset += chunk.getOnDiskSize(); + + chunk = cf.createChunk(data_a, offset); + assertNotNull(chunk.getHeader()); + assertNull(chunk.getTrailer()); + assertNotNull(chunk.getSeparator()); + offset += chunk.getOnDiskSize(); + + chunk = cf.createChunk(data_a, offset); + assertNotNull(chunk.getHeader()); + assertNull(chunk.getTrailer()); + assertNotNull(chunk.getSeparator()); offset += chunk.getOnDiskSize(); } }