@Test public void testValidFile() { File xmlFile = Files.fromResource("SomeService.xml"); Document xml = XmlUtil.parse(xmlFile, resolver); new XmlValidator(resolver).validate(xml); }
public void validate(Document doc) { try { doValidate(doc); } catch (Exception e) { throw new PluginException("Error validating document: " + e, e); } }
XmlValidator { public void validate(Document doc) { try { doValidate(doc); } catch (Exception e) { throw new PluginException("Error validating document: " + e, e); } } }
XmlValidator { public void validate(Document doc) { try { doValidate(doc); } catch (Exception e) { throw new PluginException("Error validating document: " + e, e); } } XmlValidator(InterceptingResolver resolver); }
XmlValidator { public void validate(Document doc) { try { doValidate(doc); } catch (Exception e) { throw new PluginException("Error validating document: " + e, e); } } XmlValidator(InterceptingResolver resolver); void validate(Document doc); }
XmlValidator { public void validate(Document doc) { try { doValidate(doc); } catch (Exception e) { throw new PluginException("Error validating document: " + e, e); } } XmlValidator(InterceptingResolver resolver); void validate(Document doc);  }