From: Bill R. <bil...@xo...> - 2013-10-23 18:50:23
|
I'm using XMLUnit 1.5/Java. More often than not, the println below fails and the (testing) test ends with success without any more code being run: actualText = "<msg><uuid>0x00435A8C</uuid></msg>"; // debug expectedXmlString = "<msg><uuid>0x00435A8C</uuid></msg>"; // debug Diff myDiff = new Diff(XMLUnit.buildTestDocument(expectedXmlString), XMLUnit.buildTestDocument(actualText)); myDiff.overrideElementQualifier(new RecursiveElementNameAndTextQualifier()); if(differenceListener != null){ myDiff.overrideDifferenceListener(differenceListener); } System.out.println("@@@ similar: " + myDiff.similar()); If I slow it down in the debugger, it is more likely to succeed. Same behavior without the DifferenceListener. Any ideas? Same was seen in 1.3, upgrade didn't help. Thanks, Bill --------------------------------------------------------------------------------- The information transmitted in this email is intended only for the person or entity to which it is addressed, and may contain material confidential to Xoom Corporation, and/or its subsidiary, buyindiaonline.com Inc. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient(s) is prohibited. If you received this email in error, please contact the sender and delete the material from your files. |