Document original = builder.parse(FCFG_BASE);
Document generated =
builder.parse(new ByteArrayInputStream(out.toByteArray()));
XMLUnit.setIgnoreWhitespace(true);
Diff diff = new Diff(original, generated);
diff.overrideElementQualifier(new ElementNameAndAttributeQualifier());
assertXMLEqual(diff, true);
}
private Document getDocument(ByteArrayOutputStream out) throws Exception {
return XMLUnit.buildControlDocument(new String(out.toByteArray(),