jaxp/test/javax/xml/jaxp/unittest/org/w3c/dom/ls/LSSerializerTest.java
changeset 31104 79a0696bbd7c
parent 30707 47b636cd6456
child 31284 e9b8469adb9a
equal deleted inserted replaced
31008:5b500c93ce48 31104:79a0696bbd7c
    42 import org.xml.sax.InputSource;
    42 import org.xml.sax.InputSource;
    43 import org.xml.sax.SAXException;
    43 import org.xml.sax.SAXException;
    44 
    44 
    45 
    45 
    46 /*
    46 /*
       
    47  * @bug 6439439 8080906
    47  * @summary Test LSSerializer.
    48  * @summary Test LSSerializer.
    48  */
    49  */
    49 public class LSSerializerTest {
    50 public class LSSerializerTest {
    50     private static final String DOM_FORMAT_PRETTY_PRINT = "format-pretty-print";
    51     private static final String DOM_FORMAT_PRETTY_PRINT = "format-pretty-print";
    51 
    52 
    94             return "UTF8";
    95             return "UTF8";
    95         }
    96         }
    96 
    97 
    97         public void setEncoding(final String encoding) {
    98         public void setEncoding(final String encoding) {
    98         }
    99         }
       
   100     }
       
   101 
       
   102     /*
       
   103      * @bug 8080906
       
   104      * It will fail in a Jigsaw build until JDK-8080266 is fixed.
       
   105      */
       
   106     @Test
       
   107     public void testDefaultLSSerializer() throws Exception {
       
   108         DOMImplementationLS domImpl = (DOMImplementationLS) DocumentBuilderFactory.newInstance().newDocumentBuilder().getDOMImplementation();
       
   109         LSSerializer lsSerializer = domImpl.createLSSerializer();
       
   110         Assert.assertTrue(lsSerializer.getClass().getName().endsWith("dom3.LSSerializerImpl"));
    99     }
   111     }
   100 
   112 
   101     @Test
   113     @Test
   102     public void testDOMErrorHandler() {
   114     public void testDOMErrorHandler() {
   103 
   115