aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2020-07-05 09:39:09 +0000
committerPJ Fanning <fanningpj@apache.org>2020-07-05 09:39:09 +0000
commit31bd7852c79fb95019b667ce6e8d4566123fdcf0 (patch)
tree2e642c27fff10ce55dcf7a53038f0d295f2ff296
parent1c5ba18ac099cdee10d2f5a704a5ba8ad760bf28 (diff)
downloadpoi-31bd7852c79fb95019b667ce6e8d4566123fdcf0.tar.gz
poi-31bd7852c79fb95019b667ce6e8d4566123fdcf0.zip
try to fix issue with missing classes in poi-ooxml-schemas
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1879518 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--build.xml3
-rw-r--r--src/ooxml/testcases/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java5
2 files changed, 7 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index 3bcab115db..3a06d0498a 100644
--- a/build.xml
+++ b/build.xml
@@ -400,7 +400,8 @@ under the License.
</path>
<path id="ooxml.classpath">
- <pathelement location="${ooxml.xsds.jar}"/>
+<pathelement location="/Users/pj.fanning/code/poi-5.0.0-SNAPSHOT/poi-ooxml-schemas-5.0.0-SNAPSHOT.jar"/>
+ <!-- <pathelement location="${ooxml.xsds.jar}"/> -->
<path refid="ooxml.base.classpath"/>
<path refid="batik.classpath"/>
</path>
diff --git a/src/ooxml/testcases/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java b/src/ooxml/testcases/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java
index e6b1589b58..68652f636d 100644
--- a/src/ooxml/testcases/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java
+++ b/src/ooxml/testcases/org/apache/poi/xddf/usermodel/TestNecessaryOOXMLClasses.java
@@ -171,6 +171,11 @@ public class TestNecessaryOOXMLClasses {
Assert.assertNull(xeb.getErrorBarType());
Assert.assertNull(xeb.getErrorDirection());
Assert.assertNull(xeb.getErrorValueType());
+
+ Assert.assertNotNull(CTErrBarType.Factory.newInstance());
+ Assert.assertNotNull(CTErrValType.Factory.newInstance());
+ Assert.assertNotNull(CTErrDir.Factory.newInstance());
+
STErrBarType.Enum e9 = STErrBarType.Enum.forString("both");
Assert.assertNotNull(e9);
STErrValType.Enum e10 = STErrValType.Enum.forString("percentage");