@Test(expected = XMLUnitException.class) public void shouldNotAllowSchemaValidation() { ParsingValidator v = new ParsingValidator(Languages.XML_DTD_NS_URI); v.setSchemaSource(new StreamSource(new File(BOOK_DTD))); v.validateSchema(); }
@Override public ValidationResult validateSchema() { throw new XMLUnitException("Schema validation is not supported by" + " ParsingValidator"); }
ParsingValidator extends Validator { @Override public ValidationResult validateSchema() { throw new XMLUnitException("Schema validation is not supported by" + " ParsingValidator"); } }
ParsingValidator extends Validator { @Override public ValidationResult validateSchema() { throw new XMLUnitException("Schema validation is not supported by" + " ParsingValidator"); } ParsingValidator(String language); }
ParsingValidator extends Validator { @Override public ValidationResult validateSchema() { throw new XMLUnitException("Schema validation is not supported by" + " ParsingValidator"); } ParsingValidator(String language); void setSchemaURI(String uri); @Override ValidationResult validateSchema(); @Override ValidationResult validateInstance(Source s); ValidationResult validateInstance(Source s, SAXParserFactory factory); }
ParsingValidator extends Validator { @Override public ValidationResult validateSchema() { throw new XMLUnitException("Schema validation is not supported by" + " ParsingValidator"); } ParsingValidator(String language); void setSchemaURI(String uri); @Override ValidationResult validateSchema(); @Override ValidationResult validateInstance(Source s); ValidationResult validateInstance(Source s, SAXParserFactory factory);  }