Suppress "Expected number..." message

Help
Lou
2008-10-20
2013-03-03
  • Lou

    Lou - 2008-10-20

    Is there any way to suppress the "Expected number of child nodes..." diffs?

     
    • Stefan Bodewig

      Stefan Bodewig - 2008-10-21

      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.

       
      • Lou

        Lou - 2008-10-21

        That did the trick.
        Much thanks.

         

Log in to post a comment.