ASF Bugzilla – Attachment 31864 Details for
Bug 56799
[PATCH] CTTblGrid classes missing from poi-ooxml-schemas
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Test for CTTblGrid to ensure inclusion in poi-ooxml-schemas JAR
POI-CTTbleGrid.patch (text/plain), 1.68 KB, created by
tntim96
on 2014-08-01 00:16:54 UTC
(
hide
)
Description:
Test for CTTblGrid to ensure inclusion in poi-ooxml-schemas JAR
Filename:
MIME Type:
Creator:
tntim96
Created:
2014-08-01 00:16:54 UTC
Size:
1.68 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P ApachePOI >Index: src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTable.java >=================================================================== >--- src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTable.java (revision 1613871) >+++ src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTable.java (working copy) >@@ -29,6 +29,7 @@ > import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl; > import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblBorders; > import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblCellMar; >+import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblGrid; > import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTc; > import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTText; > import org.openxmlformats.schemas.wordprocessingml.x2006.main.STBorder; >@@ -64,7 +65,18 @@ > assertNotNull(ctTable.getTrArray(0).getTcArray(0).getPArray(0)); > } > >+ public void testTblGrid() { >+ XWPFDocument doc = new XWPFDocument(); >+ CTTbl ctTable = CTTbl.Factory.newInstance(); >+ CTTblGrid cttblgrid = ctTable.addNewTblGrid(); >+ cttblgrid.addNewGridCol().setW(new BigInteger("123")); >+ cttblgrid.addNewGridCol().setW(new BigInteger("321")); > >+ XWPFTable xtab = new XWPFTable(ctTable, doc); >+ assertEquals(123, xtab.getCTTbl().getTblGrid().getGridColArray(0).getW().intValue()); >+ assertEquals(321, xtab.getCTTbl().getTblGrid().getGridColArray(1).getW().intValue()); >+ } >+ > public void testGetText() { > XWPFDocument doc = new XWPFDocument(); > CTTbl table = CTTbl.Factory.newInstance();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 56799
: 31864