missing classes in poi-ooxml-lite

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893423 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-09-18 21:10:58 +00:00
parent 8d7af95fed
commit 5733826765
2 changed files with 37 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}