new word-to-text converter can handle OLE2 included objects, so issue 47731 is fixed

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1155337 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-08-09 12:42:34 +00:00
parent 1d9900c184
commit 6538ace5c6
2 changed files with 5 additions and 13 deletions

View File

@ -34,6 +34,7 @@
<changes> <changes>
<release version="3.8-beta4" date="2011-??-??"> <release version="3.8-beta4" date="2011-??-??">
<action dev="poi-developers" type="fix">47731 - Word Extractor considers text copied from some website as an embedded object</action>
<action dev="poi-developers" type="add">Add Word-to-Text converter and use it as replacement for WordExtractor</action> <action dev="poi-developers" type="add">Add Word-to-Text converter and use it as replacement for WordExtractor</action>
<action dev="poi-developers" type="fix">51604 - replace text fails for doc ( poi 3.8 beta release from download site )</action> <action dev="poi-developers" type="fix">51604 - replace text fails for doc ( poi 3.8 beta release from download site )</action>
<action dev="poi-developers" type="fix">Fixed incorrect encoding of non-breaking space (0xA0) in SXSSF</action> <action dev="poi-developers" type="fix">Fixed incorrect encoding of non-breaking space (0xA0) in SXSSF</action>

View File

@ -353,25 +353,16 @@ public class TestBugs extends TestCase
} }
/** /**
* [FAILING] Bug 47731 - Word Extractor considers text copied from some * [RESOLVED FIXED] Bug 47731 - Word Extractor considers text copied from
* website as an embedded object * some website as an embedded object
*/ */
public void test47731() throws Exception public void test47731() throws Exception
{ {
HWPFDocument doc = HWPFTestDataSamples.openSampleFile( "Bug47731.doc" ); HWPFDocument doc = HWPFTestDataSamples.openSampleFile( "Bug47731.doc" );
String foundText = new WordExtractor( doc ).getText(); String foundText = new WordExtractor( doc ).getText();
try assertTrue( foundText
{ .contains( "Soak the rice in water for three to four hours" ) );
assertTrue( foundText
.contains( "Soak the rice in water for three to four hours" ) );
fixed( "47731" );
}
catch ( AssertionFailedError exc )
{
// expected
}
} }
/** /**