spring-framework / org.springframework.test.web.servlet.result / XpathResultMatchers / nodeCount

nodeCount

open fun nodeCount(matcher: Matcher<Int>): ResultMatcher

Evaluate the XPath and assert the number of nodes found with the given Hamcrest Matcher.

open fun nodeCount(expectedCount: Int): ResultMatcher

Evaluate the XPath and assert the number of nodes found.