Bug in XPathAssert.assertFault()
--------------------------------
Key: XFIRE-1055
URL: http://jira.codehaus.org/browse/XFIRE-1055
Project: XFire
Issue Type: Bug
Affects Versions: 1.2.6
Environment: All
Reporter: Andrew Kerr
Assignee: Dan Diephouse
Priority: Minor
Fix For: 1.2.7
The XPathAssert.assertFault method is currently defined as follows:
public static void assertFault(Content node)
throws Exception
{
Map namespaces = new HashMap();
namespaces.put("s", Soap11.getInstance().getNamespace());
namespaces.put("s12", Soap12.getInstance().getNamespace());
assertValid("/s:Envelope/s:Body/s:Fault", node, namespaces);
assertValid("/s12:Envelope/s12:Body/s12:Fault", node, namespaces);
}
This is not correct - it means that the fault must be present with *both* Soap
1.1 and Soap 1.2 namespaces, which obviously would never pass. I think an "or"
condition is needed here.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email