From: Yegor Kozlov Date: Sat, 4 Sep 2010 10:05:38 +0000 (+0000) Subject: ensure that CTNumPr is included in poi-ooxml-schemas.jar (Bugzilla 49833) X-Git-Tag: REL_3_7_BETA3~50 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5fc4b570caeff1c689881d001628ebeeab3c4a41;p=poi.git ensure that CTNumPr is included in poi-ooxml-schemas.jar (Bugzilla 49833) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@992574 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/documentation/content/xdocs/status.xml b/src/documentation/content/xdocs/status.xml index 40ad949571..ecd28631be 100644 --- a/src/documentation/content/xdocs/status.xml +++ b/src/documentation/content/xdocs/status.xml @@ -34,6 +34,7 @@ + 49833 - ensure that CTNumPr is included in poi-ooxml-schemas.jar 49841 - fixed LEFT and RIGHT to return #VALUE! when called with a negative operand 49783 - fixed evaluation of XSSF workbooks containing formulas with reference errors (#REF!) 49751 - fixed fetching names of user defined styles in HSSFCellStyle.getUserStyleName() diff --git a/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java b/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java index 15ef5cef43..bf82b7ce9c 100644 --- a/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java +++ b/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java @@ -237,4 +237,13 @@ public final class TestXWPFParagraph extends TestCase { CTBookmark ctBookmark = paragraph.getCTP().getBookmarkStartArray(0); assertEquals("poi", ctBookmark.getName()); } + + public void testGetSetNumID() { + XWPFDocument doc = new XWPFDocument(); + XWPFParagraph p = doc.createParagraph(); + + p.setNumID(new BigInteger("10")); + assertEquals("10", p.getNumID().toString()); + } + }