]> source.dussan.org Git - poi.git/commitdiff
fix 51678 -- Extracting text from Bug51524.zip is slow
authorSergey Vladimirov <sergey@apache.org>
Thu, 18 Aug 2011 14:30:15 +0000 (14:30 +0000)
committerSergey Vladimirov <sergey@apache.org>
Thu, 18 Aug 2011 14:30:15 +0000 (14:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1159245 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java

index 85d49387f1d8a3261500c3b21d46a4efc58a9c1a..b19622ff35831b2958358192b4cbb4b7a885577b 100644 (file)
@@ -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();
+    }
 }