Is there any way to suppress the "Expected number of child nodes..." diffs?
yes, use a custom DifferenceListener that returns RETURN_IGNORE_DIFFERENCE_NODES_IDENTICAL for CHILD_NODELIST_LENGTH_ID Differences.
http://xmlunit.sourceforge.net/userguide/html/ar01s03.html#DifferenceListener
But if the number of child nodes is different, you certainly see other types of differences later.
That did the trick. Much thanks.
Log in to post a comment.
Is there any way to suppress the "Expected number of child nodes..." diffs?
yes, use a custom DifferenceListener that returns RETURN_IGNORE_DIFFERENCE_NODES_IDENTICAL for CHILD_NODELIST_LENGTH_ID Differences.
http://xmlunit.sourceforge.net/userguide/html/ar01s03.html#DifferenceListener
But if the number of child nodes is different, you certainly see other types of differences later.
That did the trick.
Much thanks.