diff options
author | Nick Burch <nick@apache.org> | 2008-08-09 10:45:19 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2008-08-09 10:45:19 +0000 |
commit | 0153f65092cf1c2df060c846821088fe61a9c5f6 (patch) | |
tree | dab5cc21911d9f4eb0f1ebe6ade6b04185f6fbb9 /src/ooxml/testcases/org/apache/poi/xwpf | |
parent | c7cdf484614271681c26503f2c68eef9c4d2c539 (diff) | |
download | poi-0153f65092cf1c2df060c846821088fe61a9c5f6.tar.gz poi-0153f65092cf1c2df060c846821088fe61a9c5f6.zip |
Patch from bug #45592 - improve xwpf text extraction
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@684219 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/testcases/org/apache/poi/xwpf')
-rw-r--r-- | src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java b/src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java index e62dd66ce7..f29d09d02f 100644 --- a/src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java +++ b/src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java @@ -117,9 +117,12 @@ public class TestXWPFWordExtractor extends TestCase { assertTrue(text.startsWith( " \n(V) ILLUSTRATIVE CASES\n\n" )); - assertTrue(text.endsWith( + assertTrue(text.contains( "As well as gaining "+euro+"90 from child benefit increases, he will also receive the early childhood supplement of "+euro+"250 per quarter for Vincent for the full four quarters of the year.\n\n\n\n \n\n\n" )); + assertTrue(text.endsWith( + "11.4%\t\t90\t\t\t\t\t250\t\t1,310\t\t\n\n" + )); // Check number of paragraphs int ps = 0; @@ -127,7 +130,7 @@ public class TestXWPFWordExtractor extends TestCase { for (int i = 0; i < t.length; i++) { if(t[i] == '\n') { ps++; } } - assertEquals(79, ps); + assertEquals(103, ps); } public void testGetWithHyperlinks() throws Exception { |