new test case for 47731 issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1150463 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a8e015ab9f
commit
a661f497d0
@ -708,6 +708,28 @@ public final class TestProblems extends HWPFTestCase {
|
||||
insertTable( 3, 3 );
|
||||
}
|
||||
|
||||
/**
|
||||
* [FAILING] Bug 47731 - Word Extractor considers text copied from some
|
||||
* website as an embedded object
|
||||
*/
|
||||
public void test47731() throws Exception
|
||||
{
|
||||
HWPFDocument doc = HWPFTestDataSamples.openSampleFile( "Bug47731.doc" );
|
||||
String foundText = new WordExtractor( doc ).getText();
|
||||
|
||||
try
|
||||
{
|
||||
assertTrue( foundText
|
||||
.contains( "Soak the rice in water for three to four hours" ) );
|
||||
|
||||
fixed( "47731" );
|
||||
}
|
||||
catch ( AssertionFailedError exc )
|
||||
{
|
||||
// expected
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Bug 4774 - text extracted by WordExtractor is broken
|
||||
*/
|
||||
|
BIN
test-data/document/Bug47731.doc
Normal file
BIN
test-data/document/Bug47731.doc
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user