diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2015-12-13 01:50:24 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2015-12-13 01:50:24 +0000 |
commit | f1277c322dc1791dfafa6569210e2e9f0ba88b4a (patch) | |
tree | fbdd46bc5e353c92ba3626640a9c96bb267885c7 /src/scratchpad/testcases/org/apache/poi/hslf/usermodel | |
parent | c92b3956e908680672327692facceba1803708f1 (diff) | |
download | poi-f1277c322dc1791dfafa6569210e2e9f0ba88b4a.tar.gz poi-f1277c322dc1791dfafa6569210e2e9f0ba88b4a.zip |
#58718 - Master styles not initialized when running multithreaded
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1719758 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad/testcases/org/apache/poi/hslf/usermodel')
-rw-r--r-- | src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java b/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java index 067f6ca916..6e11a41b54 100644 --- a/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java +++ b/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java @@ -39,6 +39,7 @@ import org.apache.poi.ddf.EscherColorRef; import org.apache.poi.ddf.EscherProperties; import org.apache.poi.hslf.HSLFTestDataSamples; import org.apache.poi.hslf.exceptions.OldPowerPointFormatException; +import org.apache.poi.hslf.extractor.PowerPointExtractor; import org.apache.poi.hslf.model.HeadersFooters; import org.apache.poi.hslf.record.Document; import org.apache.poi.hslf.record.Record; @@ -756,6 +757,17 @@ public final class TestBugs { assertEquals("foobaa", tr.getRawText()); ppt2.close(); } + + @Test + public void bug58718() throws IOException { + String files[] = { "bug58718_008524.ppt","bug58718_008558.ppt","bug58718_349008.ppt","bug58718_008495.ppt", }; + for (String f : files) { + File sample = HSLFTestDataSamples.getSampleFile(f); + PowerPointExtractor ex = new PowerPointExtractor(sample.getAbsolutePath()); + assertNotNull(ex.getText()); + ex.close(); + } + } private static HSLFSlideShow open(String fileName) throws IOException { File sample = HSLFTestDataSamples.getSampleFile(fileName); |