< prev index next >

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

Print this page




  62             doTest(null);
  63             Assert.fail("NullPointerException was not thrown.");
  64         } catch (NullPointerException e) {
  65         }
  66     }
  67 
  68     @Test
  69     public void test3() throws SAXException {
  70         try {
  71             doTest("unknown1234");
  72             Assert.fail("SAXNotRecognizedException was not thrown.");
  73         } catch (SAXNotRecognizedException e) {
  74         }
  75     }
  76 
  77     public void doTest(String name) throws SAXException {
  78         ValidatorHandler validatorHandler = schemaFactory.newSchema().newValidatorHandler();
  79         validatorHandler.setProperty(name, "123");
  80     }
  81 }
  82 


  62             doTest(null);
  63             Assert.fail("NullPointerException was not thrown.");
  64         } catch (NullPointerException e) {
  65         }
  66     }
  67 
  68     @Test
  69     public void test3() throws SAXException {
  70         try {
  71             doTest("unknown1234");
  72             Assert.fail("SAXNotRecognizedException was not thrown.");
  73         } catch (SAXNotRecognizedException e) {
  74         }
  75     }
  76 
  77     public void doTest(String name) throws SAXException {
  78         ValidatorHandler validatorHandler = schemaFactory.newSchema().newValidatorHandler();
  79         validatorHandler.setProperty(name, "123");
  80     }
  81 }

< prev index next >