You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by ni...@apache.org on 2007/06/20 15:58:15 UTC

svn commit: r549111 - /jakarta/poi/trunk/src/scratchpad/testcases/org/apache/poi/hdgf/chunks/TestChunks.java

Author: nick
Date: Wed Jun 20 06:58:14 2007
New Revision: 549111

URL: http://svn.apache.org/viewvc?view=rev&rev=549111
Log:
Tweak test to match last V11 related change

Modified:
    jakarta/poi/trunk/src/scratchpad/testcases/org/apache/poi/hdgf/chunks/TestChunks.java

Modified: jakarta/poi/trunk/src/scratchpad/testcases/org/apache/poi/hdgf/chunks/TestChunks.java
URL: http://svn.apache.org/viewvc/jakarta/poi/trunk/src/scratchpad/testcases/org/apache/poi/hdgf/chunks/TestChunks.java?view=diff&rev=549111&r1=549110&r2=549111
==============================================================================
--- jakarta/poi/trunk/src/scratchpad/testcases/org/apache/poi/hdgf/chunks/TestChunks.java (original)
+++ jakarta/poi/trunk/src/scratchpad/testcases/org/apache/poi/hdgf/chunks/TestChunks.java Wed Jun 20 06:58:14 2007
@@ -151,10 +151,23 @@
 		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();
 	}
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org