/** * Assert that the result of an XML comparison is or is not similar. * @param msg additional message to display if assertion fails * @param diff the result of an XML comparison * @param assertion true if asserting that result is similar */ public static void assertXMLEqual(String msg, Diff diff, boolean assertion) { if (assertion != diff.similar()) { fail(getFailMessage(msg, diff)); } }
/** * Assert that the result of an XML comparison is or is not identical * @param msg Message to display if assertion fails * @param diff the result of an XML comparison * @param assertion true if asserting that result is identical */ public static void assertXMLIdentical(String msg, Diff diff, boolean assertion) { if (assertion != diff.identical()) { fail(getFailMessage(msg, diff)); } }
/** * Assert that the result of an XML comparison is or is not similar. * @param msg additional message to display if assertion fails * @param diff the result of an XML comparison * @param assertion true if asserting that result is similar */ public static void assertXMLEqual(String msg, Diff diff, boolean assertion) { if (assertion != diff.similar()) { fail(getFailMessage(msg, diff)); } }
/** * Assert that the result of an XML comparison is or is not identical * @param msg Message to display if assertion fails * @param diff the result of an XML comparison * @param assertion true if asserting that result is identical */ public static void assertXMLIdentical(String msg, Diff diff, boolean assertion) { if (assertion != diff.identical()) { fail(getFailMessage(msg, diff)); } }