8080906: Develop test for Xerces Update: DOM L3 Serializer
Reviewed-by: lancea, joehw
Contributed-by: frank.yuan@oracle.com
--- a/jaxp/test/javax/xml/jaxp/functional/TEST.properties Wed Jul 05 20:37:12 2017 +0200
+++ b/jaxp/test/javax/xml/jaxp/functional/TEST.properties Mon Jun 08 21:59:07 2015 -0700
@@ -7,3 +7,6 @@
# Tests that must run in othervm mode
othervm.dirs= /javax/xml/jaxp/functional
+# Declare module dependency
+modules=java.xml
+
--- a/jaxp/test/javax/xml/jaxp/unittest/TEST.properties Wed Jul 05 20:37:12 2017 +0200
+++ b/jaxp/test/javax/xml/jaxp/unittest/TEST.properties Mon Jun 08 21:59:07 2015 -0700
@@ -1,3 +1,6 @@
# jaxp test uses TestNG
TestNG.dirs = .
+# Declare module dependency
+modules=java.xml
+
--- a/jaxp/test/javax/xml/jaxp/unittest/org/w3c/dom/ls/LSSerializerTest.java Wed Jul 05 20:37:12 2017 +0200
+++ b/jaxp/test/javax/xml/jaxp/unittest/org/w3c/dom/ls/LSSerializerTest.java Mon Jun 08 21:59:07 2015 -0700
@@ -44,6 +44,7 @@
/*
+ * @bug 6439439 8080906
* @summary Test LSSerializer.
*/
public class LSSerializerTest {
@@ -98,6 +99,17 @@
}
}
+ /*
+ * @bug 8080906
+ * It will fail in a Jigsaw build until JDK-8080266 is fixed.
+ */
+ @Test
+ public void testDefaultLSSerializer() throws Exception {
+ DOMImplementationLS domImpl = (DOMImplementationLS) DocumentBuilderFactory.newInstance().newDocumentBuilder().getDOMImplementation();
+ LSSerializer lsSerializer = domImpl.createLSSerializer();
+ Assert.assertTrue(lsSerializer.getClass().getName().endsWith("dom3.LSSerializerImpl"));
+ }
+
@Test
public void testDOMErrorHandler() {