< prev index next >

test/javax/xml/jaxp/unittest/dom/Bug6367542.java

Print this page




  35  * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest
  36  * @run testng/othervm -DrunSecMngr=true dom.Bug6367542
  37  * @run testng/othervm dom.Bug6367542
  38  * @summary Test DOMImplementationRegistry.getDOMImplementation("XML") returns a DOMImplementation instance.
  39  */
  40 @Listeners({jaxp.library.BasePolicy.class})
  41 public class Bug6367542 {
  42 
  43     @Test
  44     public void testDOMImplementationRegistry() {
  45         try {
  46             DOMImplementationRegistry registry = DOMImplementationRegistry.newInstance();
  47             DOMImplementation domImpl = registry.getDOMImplementation("XML");
  48             Assert.assertTrue(domImpl != null, "Non null implementation is expected for getDOMImplementation('XML')");
  49         } catch (Exception e) {
  50             e.printStackTrace();
  51             Assert.fail("Exception occured: " + e.getMessage());
  52         }
  53     }
  54 }
  55 


  35  * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest
  36  * @run testng/othervm -DrunSecMngr=true dom.Bug6367542
  37  * @run testng/othervm dom.Bug6367542
  38  * @summary Test DOMImplementationRegistry.getDOMImplementation("XML") returns a DOMImplementation instance.
  39  */
  40 @Listeners({jaxp.library.BasePolicy.class})
  41 public class Bug6367542 {
  42 
  43     @Test
  44     public void testDOMImplementationRegistry() {
  45         try {
  46             DOMImplementationRegistry registry = DOMImplementationRegistry.newInstance();
  47             DOMImplementation domImpl = registry.getDOMImplementation("XML");
  48             Assert.assertTrue(domImpl != null, "Non null implementation is expected for getDOMImplementation('XML')");
  49         } catch (Exception e) {
  50             e.printStackTrace();
  51             Assert.fail("Exception occured: " + e.getMessage());
  52         }
  53     }
  54 }

< prev index next >