mirror of https://github.com/apache/poi.git
add CTEm class to poi-ooxml-schemas
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1837197 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d2594d3207
commit
56facac036
|
@ -19,7 +19,9 @@ package org.apache.poi.xwpf;
|
||||||
|
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Test;
|
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.CTTblLayoutType;
|
||||||
|
import org.openxmlformats.schemas.wordprocessingml.x2006.main.STEm;
|
||||||
import org.openxmlformats.schemas.wordprocessingml.x2006.main.STTblLayoutType;
|
import org.openxmlformats.schemas.wordprocessingml.x2006.main.STTblLayoutType;
|
||||||
|
|
||||||
// aim is to get these classes loaded and included in poi-ooxml-schemas.jar
|
// aim is to get these classes loaded and included in poi-ooxml-schemas.jar
|
||||||
|
@ -31,5 +33,10 @@ public class TestNecessaryOOXMLClasses {
|
||||||
Assert.assertNotNull(ctTblLayoutType);
|
Assert.assertNotNull(ctTblLayoutType);
|
||||||
STTblLayoutType stTblLayoutType = STTblLayoutType.Factory.newInstance();
|
STTblLayoutType stTblLayoutType = STTblLayoutType.Factory.newInstance();
|
||||||
Assert.assertNotNull(stTblLayoutType);
|
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"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue