use of org.custommonkey.xmlunit.ElementNameAndAttributeQualifier in project cayenne by apache.
the class DbImporterMojoTest method verifyResult.
private void verifyResult(File map, File mapFileCopy) {
try {
FileReader control = new FileReader(map.getAbsolutePath() + "-result");
FileReader test = new FileReader(mapFileCopy);
Diff prototype = new Diff(control, test);
prototype.overrideElementQualifier(new ElementNameAndAttributeQualifier());
DetailedDiff diff = new DetailedDiff(prototype);
if (!diff.similar()) {
fail(diff.toString());
}
} catch (Exception e) {
e.printStackTrace();
fail();
}
}
Aggregations