< prev index next >

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

Print this page




  40  * @run testng/othervm -DrunSecMngr=true validation.ParticlesIg004Test
  41  * @run testng/othervm validation.ParticlesIg004Test
  42  * @summary Test particlesIg004.xsd.
  43  */
  44 @Listeners({jaxp.library.FilePolicy.class})
  45 public class ParticlesIg004Test {
  46 
  47     @Test
  48     public void testParticleslg004() {
  49         try {
  50             SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
  51             String xsdFile = "particlesIg004.xsd";
  52             Schema schema = sf.newSchema(new File(getClass().getResource(xsdFile).toURI()));
  53             Validator validator = schema.newValidator();
  54         } catch (Exception ex) {
  55             ex.printStackTrace();
  56             Assert.fail(ex.getMessage());
  57         }
  58     }
  59 }
  60 


  40  * @run testng/othervm -DrunSecMngr=true validation.ParticlesIg004Test
  41  * @run testng/othervm validation.ParticlesIg004Test
  42  * @summary Test particlesIg004.xsd.
  43  */
  44 @Listeners({jaxp.library.FilePolicy.class})
  45 public class ParticlesIg004Test {
  46 
  47     @Test
  48     public void testParticleslg004() {
  49         try {
  50             SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
  51             String xsdFile = "particlesIg004.xsd";
  52             Schema schema = sf.newSchema(new File(getClass().getResource(xsdFile).toURI()));
  53             Validator validator = schema.newValidator();
  54         } catch (Exception ex) {
  55             ex.printStackTrace();
  56             Assert.fail(ex.getMessage());
  57         }
  58     }
  59 }

< prev index next >