diff options
author | PJ Fanning <fanningpj@apache.org> | 2022-11-04 08:33:38 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2022-11-04 08:33:38 +0000 |
commit | c4a0266cb38c7f98f3efc74be805c4028b0518e8 (patch) | |
tree | b6e14cb41601a5dd0633ef1425472ed109c8d2e5 /poi-scratchpad/src/test | |
parent | 46ae0a8c60ad155b07bb90eb95b5e9fc7e4e75dc (diff) | |
download | poi-c4a0266cb38c7f98f3efc74be805c4028b0518e8.tar.gz poi-c4a0266cb38c7f98f3efc74be805c4028b0518e8.zip |
[bug-66335] add test case for issue and add some of the code from purported fix
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905061 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-scratchpad/src/test')
-rw-r--r-- | poi-scratchpad/src/test/java/org/apache/poi/hsmf/TestFileRead.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/poi-scratchpad/src/test/java/org/apache/poi/hsmf/TestFileRead.java b/poi-scratchpad/src/test/java/org/apache/poi/hsmf/TestFileRead.java new file mode 100644 index 0000000000..21f95be629 --- /dev/null +++ b/poi-scratchpad/src/test/java/org/apache/poi/hsmf/TestFileRead.java @@ -0,0 +1,19 @@ +package org.apache.poi.hsmf; + +import org.apache.poi.POIDataSamples; +import org.junit.jupiter.api.Test; + +import java.io.IOException; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +public class TestFileRead { + @Test + void bug66335() throws IOException { + try (MAPIMessage mapiMessage = new MAPIMessage( + POIDataSamples.getHSMFInstance().getFile("bug66335.msg"))) { + // 25 is not the right number of properties but it is what the existing code finds + assertEquals(25, mapiMessage.getMainChunks().getProperties().size()); + } + } +} |