8080906: Develop test for Xerces Update: DOM L3 Serializer

Reviewed-by: lancea, joehw
This commit is contained in:
Frank Yuan 2015-06-08 21:59:07 -07:00 committed by Joe Wang
parent d35b2d378b
commit 4a0e9912f0
3 changed files with 18 additions and 0 deletions

View File

@ -7,3 +7,6 @@ lib.dirs = /javax/xml/jaxp/libs
# Tests that must run in othervm mode
othervm.dirs= /javax/xml/jaxp/functional
# Declare module dependency
modules=java.xml

View File

@ -1,3 +1,6 @@
# jaxp test uses TestNG
TestNG.dirs = .
# Declare module dependency
modules=java.xml

View File

@ -44,6 +44,7 @@ import org.xml.sax.SAXException;
/*
* @bug 6439439 8080906
* @summary Test LSSerializer.
*/
public class LSSerializerTest {
@ -98,6 +99,17 @@ public class LSSerializerTest {
}
}
/*
* @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() {