diff options
author | Sergey Vladimirov <sergey@apache.org> | 2011-07-24 18:55:57 +0000 |
---|---|---|
committer | Sergey Vladimirov <sergey@apache.org> | 2011-07-24 18:55:57 +0000 |
commit | c83aca18066d56f90a879b4093dfff18cdb4f732 (patch) | |
tree | 6d58073dfade22d863d8e4a677aab3ef9a0a89af | |
parent | 529a1b36e4b23d77286a90ec2dcacbe327f4ab38 (diff) | |
download | poi-c83aca18066d56f90a879b4093dfff18cdb4f732.tar.gz poi-c83aca18066d56f90a879b4093dfff18cdb4f732.zip |
new test case for 47731 issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1150463 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java | 22 | ||||
-rw-r--r-- | test-data/document/Bug47731.doc | bin | 0 -> 898048 bytes |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java index a93db00ec5..fae45758ac 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java +++ b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java @@ -709,6 +709,28 @@ public final class TestProblems extends HWPFTestCase { } /** + * [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 */ public void test47742() throws Exception { diff --git a/test-data/document/Bug47731.doc b/test-data/document/Bug47731.doc Binary files differnew file mode 100644 index 0000000000..c8cd88d25e --- /dev/null +++ b/test-data/document/Bug47731.doc |