Author: sergey
Date: Sun Jul 24 18:55:57 2011
New Revision: 1150463
URL: http://svn.apache.org/viewvc?rev=1150463&view=rev
Log:
new test case for 47731 issue
Added:
poi/trunk/test-data/document/Bug47731.doc (with props)
Modified:
poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java
Modified:
poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java
URL:
http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java?rev=1150463&r1=1150462&r2=1150463&view=diff
==============================================================================
---
poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java
(original)
+++
poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java
Sun Jul 24 18:55:57 2011
@@ -709,6 +709,28 @@ public final class TestProblems extends
}
/**
+ * [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 {
Added: poi/trunk/test-data/document/Bug47731.doc
URL:
http://svn.apache.org/viewvc/poi/trunk/test-data/document/Bug47731.doc?rev=1150463&view=auto
==============================================================================
Binary file - no diff available.
Propchange: poi/trunk/test-data/document/Bug47731.doc
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]