You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ni...@apache.org on 2012/10/15 12:36:31 UTC

svn commit: r1398237 - /poi/trunk/src/scratchpad/testcases/org/apache/poi/hsmf/TestBasics.java

Author: nick
Date: Mon Oct 15 10:36:30 2012
New Revision: 1398237

URL: http://svn.apache.org/viewvc?rev=1398237&view=rev
Log:
Use a chunk that really isn't there, to avoid issues when we start to support message dates better

Modified:
    poi/trunk/src/scratchpad/testcases/org/apache/poi/hsmf/TestBasics.java

Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hsmf/TestBasics.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hsmf/TestBasics.java?rev=1398237&r1=1398236&r2=1398237&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hsmf/TestBasics.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hsmf/TestBasics.java Mon Oct 15 10:36:30 2012
@@ -123,13 +123,14 @@ public final class TestBasics extends Te
 	}
 	
 	/**
-	 * Test missing chunks
+	 * Test missing chunks.
+	 * Use a file with no HTML body
 	 */
 	public void testMissingChunks() throws Exception {
 	   assertEquals(false, attachments.isReturnNullOnMissingChunk());
 
 	   try {
-	      attachments.getMessageDate();
+	      attachments.getHtmlBody();
 	      fail();
 	   } catch(ChunkNotFoundException e) {
 	      // Good
@@ -137,12 +138,12 @@ public final class TestBasics extends Te
 	   
 	   attachments.setReturnNullOnMissingChunk(true);
 	   
-	   assertEquals(null, attachments.getMessageDate());
+	   assertEquals(null, attachments.getHtmlBody());
 	   
       attachments.setReturnNullOnMissingChunk(false);
       
       try {
-         attachments.getMessageDate();
+         attachments.getHtmlBody();
          fail();
       } catch(ChunkNotFoundException e) {
          // Good



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