From 361117c17a22b209f783d851913aabb025d0bef8 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Tue, 31 Jul 2018 23:45:18 +0000 Subject: [PATCH] add CTEm class to poi-ooxml-schemas git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1837197 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/xwpf/TestNecessaryOOXMLClasses.java | 7 +++++++ 1 file changed, 7 insertions(+) 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")); } }