Evaluate XPath Hamcrest Matcher#66
Conversation
…expression specified corresponds to the specified value matcher in provided xml input.
|
Very elegant solution, many thanks. Do you think you could update the user guide with examples for this one and the |
Evaluate XPath Hamcrest Matcher
|
Note to self: first merge the PR, then comment or you close it by accident. |
|
Hi @bodewig . Sure, I can take care of updating the docs. I will make an additional PR until tommorow. |
|
Unless I've messed things up - which is certainly possible - you should be able to edit the Wiki directly. I don't think github supports PRs against Wikis (even though they are git repos as well). If you prefer a PR-like workflow, I can certainly merge a branch of a clone of the Wiki from your personal space. |
|
@bodewig I've added the XPath Matcher related guideline here : |
|
Looks good, many thanks. |
Added hamcrest Matcher to verify whether the evaluation of the XPath expression specified corresponds to the specified value matcher in provided xml input.
Design of this matcher is similar to org.hamcrest.xml.HasXPath matcher, but it provides the ability to match not only org.w3c.dom.Node instance, but instead anything supported by org.xmlunit.build.Input.from(Object)