diff options
author | Nick Burch <nick@apache.org> | 2011-12-05 05:12:23 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2011-12-05 05:12:23 +0000 |
commit | 765d970a458f8ff9523447f9a2d8368fda9f6cd7 (patch) | |
tree | bcc6e3ce11eca18ae1f37f1fe02bd341130d9b3c /src | |
parent | 36f27c7385b67da5f1261c952982d8d09999068f (diff) | |
download | poi-765d970a458f8ff9523447f9a2d8368fda9f6cd7.tar.gz poi-765d970a458f8ff9523447f9a2d8368fda9f6cd7.zip |
Add test file for bug #51873 from Jeremy, and a test that uses it
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1210332 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/scratchpad/testcases/org/apache/poi/hsmf/parsers/TestPOIFSChunkParser.java | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hsmf/parsers/TestPOIFSChunkParser.java b/src/scratchpad/testcases/org/apache/poi/hsmf/parsers/TestPOIFSChunkParser.java index 2ef19603e7..721f60591c 100644 --- a/src/scratchpad/testcases/org/apache/poi/hsmf/parsers/TestPOIFSChunkParser.java +++ b/src/scratchpad/testcases/org/apache/poi/hsmf/parsers/TestPOIFSChunkParser.java @@ -332,5 +332,21 @@ public final class TestPOIFSChunkParser extends TestCase { } 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()); + } } |