]> source.dussan.org Git - poi.git/commitdiff
add CTEm class to poi-ooxml-schemas
authorPJ Fanning <fanningpj@apache.org>
Tue, 31 Jul 2018 23:45:18 +0000 (23:45 +0000)
committerPJ Fanning <fanningpj@apache.org>
Tue, 31 Jul 2018 23:45:18 +0000 (23:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1837197 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/testcases/org/apache/poi/xwpf/TestNecessaryOOXMLClasses.java

index e086ee128f963fa0418fe8b1afd9e778a59873c7..743fdb2f7170f7228d2b069319fe56d18a30e8f8 100644 (file)
@@ -19,7 +19,9 @@ package org.apache.poi.xwpf;
 
 import org.junit.Assert;
 import org.junit.Test;
+import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTEm;
 import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblLayoutType;
+import org.openxmlformats.schemas.wordprocessingml.x2006.main.STEm;
 import org.openxmlformats.schemas.wordprocessingml.x2006.main.STTblLayoutType;
 
 // aim is to get these classes loaded and included in poi-ooxml-schemas.jar
@@ -31,5 +33,10 @@ public class TestNecessaryOOXMLClasses {
         Assert.assertNotNull(ctTblLayoutType);
         STTblLayoutType stTblLayoutType = STTblLayoutType.Factory.newInstance();
         Assert.assertNotNull(stTblLayoutType);
+        CTEm ctEm = CTEm.Factory.newInstance();
+        Assert.assertNotNull(ctEm);
+        STEm stEm = STEm.Factory.newInstance();
+        Assert.assertNotNull(stEm);
+        Assert.assertEquals(STEm.CIRCLE, STEm.Enum.forString("circle"));
     }
 }