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 2011/12/05 06:12:23 UTC
svn commit: r1210332 - in /poi/trunk:
src/scratchpad/testcases/org/apache/poi/hsmf/parsers/TestPOIFSChunkParser.java
test-data/hsmf/51873.msg
Author: nick
Date: Mon Dec 5 05:12:23 2011
New Revision: 1210332
URL: http://svn.apache.org/viewvc?rev=1210332&view=rev
Log:
Add test file for bug #51873 from Jeremy, and a test that uses it
Added:
poi/trunk/test-data/hsmf/51873.msg (with props)
Modified:
poi/trunk/src/scratchpad/testcases/org/apache/poi/hsmf/parsers/TestPOIFSChunkParser.java
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hsmf/parsers/TestPOIFSChunkParser.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hsmf/parsers/TestPOIFSChunkParser.java?rev=1210332&r1=1210331&r2=1210332&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hsmf/parsers/TestPOIFSChunkParser.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hsmf/parsers/TestPOIFSChunkParser.java Mon Dec 5 05:12:23 2011
@@ -332,5 +332,21 @@ public final class TestPOIFSChunkParser
} catch(ChunkNotFoundException e) {
fail();
}
- }
+ }
+
+ /**
+ * Bugzilla #51873 - Outlook 2002 files created with dragging and
+ * dropping files to the disk include a non-standard named streams
+ * such as "Olk10SideProps_0001"
+ */
+ public void testOlk10SideProps() throws Exception {
+ POIFSFileSystem poifs = new POIFSFileSystem(
+ new FileInputStream(samples.getFile("51873.msg"))
+ );
+ MAPIMessage msg = new MAPIMessage(poifs);
+
+ // Check core details came through
+ assertEquals("bubba@bubbasmith.com", msg.getDisplayTo());
+ assertEquals("Test with Olk10SideProps_ Chunk", msg.getSubject());
+ }
}
Added: poi/trunk/test-data/hsmf/51873.msg
URL: http://svn.apache.org/viewvc/poi/trunk/test-data/hsmf/51873.msg?rev=1210332&view=auto
==============================================================================
Binary file - no diff available.
Propchange: poi/trunk/test-data/hsmf/51873.msg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org