ResultMatcher function ( final Matcher < Integer > arg0 ) { return new ResultMatcher ( ) { @ Override public void match ( MvcResult arg1 ) throws Exception { MockHttpServletResponse loc0 = arg1 . getResponse ( ) ; xpathHelper . assertNodeCount ( loc0 . getContentAsByteArray ( ) , getDefinedEncoding ( loc0 ) , arg0 ) ; } } ; }
evaluate the xpath and assert the number of nodes found with the given hamcrest matcher . concode_field_sep XpathExpectationsHelper xpathHelper concode_field_sep ResultMatcher node concode_elem_sep ResultMatcher number concode_elem_sep ResultMatcher number concode_elem_sep ResultMatcher string concode_elem_sep ResultMatcher string concode_elem_sep ResultMatcher doesNotExist concode_elem_sep ResultMatcher exists concode_elem_sep String getDefinedEncoding concode_elem_sep ResultMatcher booleanValue