diff options
author | Nick Burch <nick@apache.org> | 2011-05-13 12:22:24 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2011-05-13 12:22:24 +0000 |
commit | 4f0f31a37e52927f9f3243012e18c3a2451d26ff (patch) | |
tree | 511165f87bcd53966f3bedec79dc4b154fd43991 /src/ooxml/testcases/org/apache/poi/xwpf | |
parent | e44a0f8d40655eaf3ac40f0a90739b6da69245f4 (diff) | |
download | poi-4f0f31a37e52927f9f3243012e18c3a2451d26ff.tar.gz poi-4f0f31a37e52927f9f3243012e18c3a2451d26ff.zip |
Autoboxing tweaks from bug #51175, and make the paragraph/table finding code generic
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1102691 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/TestXWPFDocument.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/xwpf/TestXWPFDocument.java b/src/ooxml/testcases/org/apache/poi/xwpf/TestXWPFDocument.java index cf313063a6..ebdeea294b 100644 --- a/src/ooxml/testcases/org/apache/poi/xwpf/TestXWPFDocument.java +++ b/src/ooxml/testcases/org/apache/poi/xwpf/TestXWPFDocument.java @@ -105,6 +105,9 @@ public final class TestXWPFDocument extends TestCase { XWPFParagraph p = doc.createParagraph(); assertEquals(p, doc.getParagraphs().get(3)); assertEquals(4, doc.getParagraphs().size()); + + assertEquals(3, doc.getParagraphPos(3)); + assertEquals(3, doc.getPosOfParagraph(p)); CTP ctp = p.getCTP(); XWPFParagraph newP = doc.getParagraph(ctp); |