cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "maomaode (JIRA)" <>
Subject [jira] Commented: (CXF-1000) Remove string compares of XML from unit tests
Date Fri, 21 Sep 2007 12:59:51 GMT


maomaode commented on CXF-1000:

I wrote couple asserts, assertXmlEquals(File f1, File f2), assertWsdlEquals(File f1, File
f2), and it's Stax based, can filter(ignore) some attributes, tags. it's not fully featured,
(e.g can not diff the anonymous type with non-anonymous type, which is same in semantics,
but has different dom/tagTree represent). But should sufficient for the current use.

I have tested with the jaxb2.1 and jaxb2.0, and all test passed, I have updated all the tests
under the javato module.

> Remove string compares of XML from unit tests
> ---------------------------------------------
>                 Key: CXF-1000
>                 URL:
>             Project: CXF
>          Issue Type: Task
>    Affects Versions: 2.0.1
>            Reporter: Daniel Kulp
> There are a lot of tests that are doing striaght string compares of XML results with
files on the disk.   This makes it harder than necessary to update things when behavior changes.
 (like different XML serialization routine used).
> The tests should either normalize the XML and use a normalization compare routine, or
preferably, use XPATHS to test specifically if the interested nodes and information that the
test is actually testing is in the XML so the format of the XML is irrelevant.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message