use of org.custommonkey.xmlunit.Validator in project wcomponents by BorderTech.
the class AbstractWebXmlRendererTestCase method assertSchemaMatch.
/**
* Asserts that the given xhtml matches the schema.
*
* @param xhtml the xhtml to validate.
*
* @throws IOException if there is an I/O error
* @throws SAXException if there is a parsing error
*/
public void assertSchemaMatch(final String xhtml) throws IOException, SAXException {
Validator validator = getSchemaValidator(xhtml);
validator.assertIsValid();
}
Aggregations