From ccf25f2f683e68a27735573456da8c410d193006 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Tue, 9 Aug 2011 12:42:34 +0000 Subject: [PATCH] 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 --- src/documentation/content/xdocs/status.xml | 1 + .../org/apache/poi/hwpf/usermodel/TestBugs.java | 17 ++++------------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/src/documentation/content/xdocs/status.xml b/src/documentation/content/xdocs/status.xml index aca3037dc9..34733a2a44 100644 --- a/src/documentation/content/xdocs/status.xml +++ b/src/documentation/content/xdocs/status.xml @@ -34,6 +34,7 @@ + 47731 - Word Extractor considers text copied from some website as an embedded object Add Word-to-Text converter and use it as replacement for WordExtractor 51604 - replace text fails for doc ( poi 3.8 beta release from download site ) Fixed incorrect encoding of non-breaking space (0xA0) in SXSSF 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 01810569a5..820d7ba239 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java +++ b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBugs.java @@ -353,25 +353,16 @@ public class TestBugs extends TestCase } /** - * [FAILING] Bug 47731 - Word Extractor considers text copied from some - * website as an embedded object + * [RESOLVED FIXED] 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 - } + assertTrue( foundText + .contains( "Soak the rice in water for three to four hours" ) ); } /** -- 2.39.5