Document doc = docBuilder.parse(entry.openStream());
if (errorHandler.hasErrors()) {
logger.warn("Error parsing integration test {}: XML validation failed", entry);
continue;
}
IntegrationTestGroup test = IntegrationTestParser.fromXml(doc.getFirstChild());
test.setSite(this);
test.setGroup(getName());
tests.add(test);
} catch (SAXException e) {
throw new IllegalStateException(e);
} catch (IOException e) {
throw new IllegalStateException(e);