< prev index next >

test/javax/xml/jaxp/unittest/validation/Bug6378043.java

Print this page




  36  * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest
  37  * @run testng/othervm -DrunSecMngr=true validation.Bug6378043
  38  * @run testng/othervm validation.Bug6378043
  39  * @summary Test XPath expression "child::" can be parsed.
  40  */
  41 @Listeners({jaxp.library.FilePolicy.class})
  42 public class Bug6378043 {
  43 
  44     static String SCHEMA_LANG = "http://www.w3.org/2001/XMLSchema";
  45 
  46     @Test
  47     public void testSelectorXPath() {
  48         try {
  49             Schema schema = SchemaFactory.newInstance(SCHEMA_LANG).newSchema(this.getClass().getResource("idI009.xsd"));
  50         } catch (Exception e) {
  51             e.printStackTrace();
  52             Assert.fail("Exception occured: " + e.getMessage());
  53         }
  54     }
  55 }
  56 


  36  * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest
  37  * @run testng/othervm -DrunSecMngr=true validation.Bug6378043
  38  * @run testng/othervm validation.Bug6378043
  39  * @summary Test XPath expression "child::" can be parsed.
  40  */
  41 @Listeners({jaxp.library.FilePolicy.class})
  42 public class Bug6378043 {
  43 
  44     static String SCHEMA_LANG = "http://www.w3.org/2001/XMLSchema";
  45 
  46     @Test
  47     public void testSelectorXPath() {
  48         try {
  49             Schema schema = SchemaFactory.newInstance(SCHEMA_LANG).newSchema(this.getClass().getResource("idI009.xsd"));
  50         } catch (Exception e) {
  51             e.printStackTrace();
  52             Assert.fail("Exception occured: " + e.getMessage());
  53         }
  54     }
  55 }

< prev index next >