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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to