RequestMatcher function ( final Matcher < Integer > arg0 ) { return new AbstractXpathRequestMatcher ( ) { @ Override protected void matchInternal ( MockClientHttpRequest arg1 ) throws Exception { xpathHelper . assertNodeCount ( arg1 . getBodyAsBytes ( ) , DEFAULT_ENCODING , arg0 ) ; } } ; }
apply the xpath and assert the number of nodes found with the given matcher . concode_field_sep XpathExpectationsHelper xpathHelper concode_elem_sep String DEFAULT_ENCODING concode_field_sep RequestMatcher node concode_elem_sep RequestMatcher number concode_elem_sep RequestMatcher number concode_elem_sep RequestMatcher string concode_elem_sep RequestMatcher string concode_elem_sep RequestMatcher doesNotExist concode_elem_sep void match concode_elem_sep RequestMatcher exists concode_elem_sep RequestMatcher booleanValue concode_elem_sep void matchInternal