From: SourceForge.net <no...@so...> - 2008-08-22 11:45:56
|
Feature Requests item #2067321, was opened at 2008-08-22 12:46 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377771&aid=2067321&group_id=23187 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: XMLUnit for Java Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Peter Schuebl (schup) Assigned to: Nobody/Anonymous (nobody) Summary: Change Exception for better IDE integration Initial Comment: Currently XMLTestCase.assertXMLEqual results in a junit.framework.AssertionFailedError If no message is specified the output is as follows junit.framework.AssertionFailedError: org.custommonkey.xmlunit.Diff [different] Expected element tag name 'uuid' but was 'localId' - comparing <uuid...> at /msg[1]/uuid[1] to <localId...> at /msg[1]/localId[1] A small change would make use of existing IDE integrations for junit which highlight the text difference (see attached screenshot) The screenshot was create by throwing the following exception: throw new ComparisonFailure( "Expected element tag name 'uuid' but was 'localId' - comparing <uuid...> at /msg[1]/uuid[1] to <localId...> at /msg[1]/localId[1]", "<msg><uuid>0x00435A8C</uuid></msg>", "<msg><localId>2376</localId></msg>"); which resulted in the message: junit.framework.ComparisonFailure: Expected element tag name 'uuid' but was 'localId' - comparing <uuid...> at /msg[1]/uuid[1] to <localId...> at /msg[1]/localId[1] expected:<<msg><[uuid>0x00435A8C</uui]d></msg>> but was:<<msg><[localId>2376</localI]d></msg>> Nothing critical - just an idea :-) btw: good work ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377771&aid=2067321&group_id=23187 |