Add simple tests to test JAXP
git-svn-id: https://svn.apache.org/repos/asf/servicemix/smx4/kernel/trunk@707098 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/testing/itests/src/test/java/org/apache/servicemix/kernel/testing/itests/SimpleTest.java b/testing/itests/src/test/java/org/apache/servicemix/kernel/testing/itests/SimpleTest.java
index feba475..315bc0e 100644
--- a/testing/itests/src/test/java/org/apache/servicemix/kernel/testing/itests/SimpleTest.java
+++ b/testing/itests/src/test/java/org/apache/servicemix/kernel/testing/itests/SimpleTest.java
@@ -54,6 +54,18 @@
};
}
+ public void testDocumentBuilderFactory() throws Exception {
+ assertNotNull(javax.xml.parsers.DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument());
+ }
+
+ public void testTransformerFactory() throws Exception {
+ assertNotNull(javax.xml.transform.TransformerFactory.newInstance().newTransformer());
+ }
+
+ public void testSchemaFactory() throws Exception {
+ assertNotNull(javax.xml.validation.SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema").newSchema());
+ }
+
public void testWoodstox() throws Exception {
//JDK 1.6 and above ship with a StaX implementation
if (System.getProperty("java.version").startsWith("1.5")) {
diff --git a/testing/itests/src/test/resources/org/apache/servicemix/MANIFEST.MF b/testing/itests/src/test/resources/org/apache/servicemix/MANIFEST.MF
index 94d751d..f26d98a 100644
--- a/testing/itests/src/test/resources/org/apache/servicemix/MANIFEST.MF
+++ b/testing/itests/src/test/resources/org/apache/servicemix/MANIFEST.MF
@@ -26,4 +26,7 @@
org.springframework.osgi.test,
org.apache.servicemix.kernel.testing.support,
org.springframework.osgi.util,
- javax.xml.stream
+ javax.xml.stream,
+ javax.xml.transform,
+ javax.xml.validation,
+ javax.xml.parsers