From 0c3cb7008f92d7478e46cd8a24b9d50f0cc94bdc Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Thu, 18 Aug 2011 14:30:15 +0000 Subject: [PATCH] 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 --- .../org/apache/poi/hwpf/usermodel/TestBugs.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 85d49387f..b19622ff3 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(); + } }