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
This commit is contained in:
Sergey Vladimirov 2011-08-18 14:30:15 +00:00
parent 2acd64779a
commit 0c3cb7008f

View File

@ -647,4 +647,15 @@ public class TestBugs extends TestCase
npoifsFileSystem.getRoot() ); npoifsFileSystem.getRoot() );
hwpfDocument.write( new ByteArrayOutputStream() ); 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();
}
} }