aboutsummaryrefslogtreecommitdiffstats
path: root/poi-ooxml/src/test
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2021-09-18 21:10:58 +0000
committerPJ Fanning <fanningpj@apache.org>2021-09-18 21:10:58 +0000
commit573382676565bcac9915ad3f039bb356cb48ff71 (patch)
tree7474c88fb0d7832f6d32243176f74384a5719ca8 /poi-ooxml/src/test
parent8d7af95fede762f946afec8539752271bc29dfec (diff)
downloadpoi-573382676565bcac9915ad3f039bb356cb48ff71.tar.gz
poi-573382676565bcac9915ad3f039bb356cb48ff71.zip
missing classes in poi-ooxml-lite
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893423 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml/src/test')
-rw-r--r--poi-ooxml/src/test/java/org/apache/poi/poifs/crypt/dsig/TestNecessaryClasses.java26
-rw-r--r--poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java11
2 files changed, 37 insertions, 0 deletions
diff --git a/poi-ooxml/src/test/java/org/apache/poi/poifs/crypt/dsig/TestNecessaryClasses.java b/poi-ooxml/src/test/java/org/apache/poi/poifs/crypt/dsig/TestNecessaryClasses.java
new file mode 100644
index 0000000000..566fcdb47d
--- /dev/null
+++ b/poi-ooxml/src/test/java/org/apache/poi/poifs/crypt/dsig/TestNecessaryClasses.java
@@ -0,0 +1,26 @@
+package org.apache.poi.poifs.crypt.dsig;
+
+import org.etsi.uri.x01903.v13.DataObjectFormatType;
+import org.etsi.uri.x01903.v13.ObjectIdentifierType;
+import org.etsi.uri.x01903.v13.SignaturePolicyIdType;
+import org.etsi.uri.x01903.v14.ValidationDataType;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+
+// aim is to get these classes loaded and included in poi-ooxml-lite.jar
+public class TestNecessaryClasses {
+
+ @Test
+ void testProblemClasses() {
+ DataObjectFormatType dataObjectFormatType = DataObjectFormatType.Factory.newInstance();
+ assertNotNull(dataObjectFormatType);
+ ObjectIdentifierType objectIdentifierType = ObjectIdentifierType.Factory.newInstance();
+ assertNotNull(objectIdentifierType);
+ SignaturePolicyIdType signaturePolicyIdType = SignaturePolicyIdType.Factory.newInstance();
+ assertNotNull(signaturePolicyIdType);
+ ValidationDataType validationDataType = ValidationDataType.Factory.newInstance();
+ assertNotNull(validationDataType);
+ }
+
+}
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java b/poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java
index bc235f51b5..949189ac16 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java
@@ -188,6 +188,17 @@ class TestNecessaryOOXMLClasses {
assertNotNull(e11);
CTErrBars bars = CTErrBars.Factory.newInstance();
assertNotNull(bars);
+
+ CTThickness ctThickness = CTThickness.Factory.newInstance();
+ assertNotNull(ctThickness);
+ STOverlap overlap = STOverlap.Factory.newInstance();
+ assertNotNull(overlap);
+ STDepthPercent stDepthPercent = STDepthPercent.Factory.newInstance();
+ assertNotNull(stDepthPercent);
+ STHPercent sthPercent = STHPercent.Factory.newInstance();
+ assertNotNull(sthPercent);
+ STHoleSize stHoleSize = STHoleSize.Factory.newInstance();
+ assertNotNull(stHoleSize);
}
}