From: Sergey Vladimirov Date: Thu, 18 Aug 2011 14:30:15 +0000 (+0000) Subject: fix 51678 -- Extracting text from Bug51524.zip is slow X-Git-Tag: REL_3_8_BETA4~1^2~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1b74e2a9c0fe7d2a768a416c081b06afc4136f59;p=poi.git fix 51678 -- Extracting text from Bug51524.zip is slow git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1159245 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java index 85d49387f1..b19622ff35 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java +++ b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java @@ -647,4 +647,15 @@ public class TestBugs extends TestCase npoifsFileSystem.getRoot() ); hwpfDocument.write( new ByteArrayOutputStream() ); } + + + /** + * Bug 51678 - Extracting text from Bug51524.zip is slow + */ + public void test51678() + { + HWPFDocument hwpfDocument = HWPFTestDataSamples.openSampleFileFromArchive( "Bug51524.zip" ); + WordExtractor wordExtractor = new WordExtractor( hwpfDocument ); + wordExtractor.getText(); + } }