< prev index next >

test/javax/xml/jaxp/functional/javax/xml/validation/ptests/ValidatorHandlerTest.java

Print this page




 131         assertNull(validatorHandler.getContentHandler(), "When ValidatorHandler is created, initially ContentHandler should not be set.");
 132 
 133         ContentHandler handler = new DefaultHandler();
 134         validatorHandler.setContentHandler(handler);
 135         assertSame(validatorHandler.getContentHandler(), handler);
 136 
 137         validatorHandler.setContentHandler(null);
 138         assertNull(validatorHandler.getContentHandler());
 139 
 140     }
 141 
 142     private ValidatorHandler getValidatorHandler() {
 143         return schema.newValidatorHandler();
 144     }
 145 
 146     private static final String FEATURE_NAME = "http://xml.org/sax/features/namespace-prefixes";
 147 
 148     private Schema schema;
 149 
 150 }
 151 


 131         assertNull(validatorHandler.getContentHandler(), "When ValidatorHandler is created, initially ContentHandler should not be set.");
 132 
 133         ContentHandler handler = new DefaultHandler();
 134         validatorHandler.setContentHandler(handler);
 135         assertSame(validatorHandler.getContentHandler(), handler);
 136 
 137         validatorHandler.setContentHandler(null);
 138         assertNull(validatorHandler.getContentHandler());
 139 
 140     }
 141 
 142     private ValidatorHandler getValidatorHandler() {
 143         return schema.newValidatorHandler();
 144     }
 145 
 146     private static final String FEATURE_NAME = "http://xml.org/sax/features/namespace-prefixes";
 147 
 148     private Schema schema;
 149 
 150 }

< prev index next >