diff --git a/src/ooxml/testcases/org/apache/poi/xwpf/TestNecessaryOOXMLClasses.java b/src/ooxml/testcases/org/apache/poi/xwpf/TestNecessaryOOXMLClasses.java index e086ee128..743fdb2f7 100644 --- a/src/ooxml/testcases/org/apache/poi/xwpf/TestNecessaryOOXMLClasses.java +++ b/src/ooxml/testcases/org/apache/poi/xwpf/TestNecessaryOOXMLClasses.java @@ -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")); } }