poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ye...@apache.org
Subject svn commit: r1407242 - in /poi/trunk/src: documentation/content/xdocs/status.xml ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTableCell.java
Date Thu, 08 Nov 2012 19:52:20 GMT
Author: yegor
Date: Thu Nov  8 19:52:20 2012
New Revision: 1407242

URL: http://svn.apache.org/viewvc?rev=1407242&view=rev
Log:
Bugzilla 54099 - Ensure that CTHMerge and CTTcBorders go to poi-ooxml-schemas jar

Modified:
    poi/trunk/src/documentation/content/xdocs/status.xml
    poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTableCell.java

Modified: poi/trunk/src/documentation/content/xdocs/status.xml
URL: http://svn.apache.org/viewvc/poi/trunk/src/documentation/content/xdocs/status.xml?rev=1407242&r1=1407241&r2=1407242&view=diff
==============================================================================
--- poi/trunk/src/documentation/content/xdocs/status.xml (original)
+++ poi/trunk/src/documentation/content/xdocs/status.xml Thu Nov  8 19:52:20 2012
@@ -34,6 +34,7 @@
 
     <changes>
         <release version="3.9-beta1" date="2012-??-??">
+          <action dev="poi-developers" type="fix">54099 - Ensure that CTHMerge and
CTTcBorders go to poi-ooxml-schemas jar</action>
           <action dev="poi-developers" type="fix">54111 - Fixed extracting text from
table cells in HSLF</action>
           <action dev="poi-developers" type="add">52583 - add support for drop-down
lists in doc to html convertion</action>
           <action dev="poi-developers" type="add">52863 - add workaround for files
with broken CHP SPRMs</action>

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTableCell.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTableCell.java?rev=1407242&r1=1407241&r2=1407242&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTableCell.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTableCell.java Thu
Nov  8 19:52:20 2012
@@ -22,11 +22,7 @@ package org.apache.poi.xwpf.usermodel;
 import junit.framework.TestCase;
 
 import org.apache.poi.xwpf.usermodel.XWPFTableCell.XWPFVertAlign;
-import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShd;
-import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl;
-import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTVerticalJc;
-import org.openxmlformats.schemas.wordprocessingml.x2006.main.STShd;
-import org.openxmlformats.schemas.wordprocessingml.x2006.main.STVerticalJc;
+import org.openxmlformats.schemas.wordprocessingml.x2006.main.*;
 
 public class TestXWPFTableCell extends TestCase {
 
@@ -79,9 +75,20 @@ public class TestXWPFTableCell extends T
         assertEquals("F0000F", clr);
 	}
 
-	@Override
-	protected void tearDown() throws Exception {
-		super.tearDown();
-	}
+    /**
+     * ensure that CTHMerge & CTTcBorders go in poi-ooxml.jar
+     */
+	public void test54099(){
+        XWPFDocument doc = new XWPFDocument();
+        CTTbl ctTable = CTTbl.Factory.newInstance();
+        XWPFTable table = new XWPFTable(ctTable, doc);
+        XWPFTableRow tr = table.getRow(0);
+        XWPFTableCell cell = tr.getCell(0);
+
+        CTTc ctTc = cell.getCTTc();
+        CTTcPr tcPr = ctTc.addNewTcPr();
+        CTHMerge hMerge = tcPr.addNewHMerge();
 
+        CTTcBorders tblBorders = tcPr.addNewTcBorders();
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message