Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
While org.springframework.test.web.servlet.result.XpathResultMatchers supports Hamcrest matcher against a single org.w3c.dom.Node, it doesn't allow matching against multiple nodes via the org.w3c.dom.NodeList.
Suggest addition of a new ResultMatcher method in XpathResultMatchers and supporting XpathExpectationsHelper:
My motivation for this is to allow checking that XHTML element IDs are unique across the document, and to do this, I need to match all elements with an ID.
Happy to contribute if you think this is worthwhile adding to framework.
Referenced from: pull request #2023