ResultMatcher function ( final Matcher < ? super String > arg0 ) { return new ResultMatcher ( ) { @ Override public void match ( MvcResult arg1 ) throws Exception { String loc0 = arg1 . getResponse ( ) . getContentAsString ( ) ; xpathHelper . assertString ( loc0 , arg0 ) ; } } ; }
apply the xpath and assert the string value found with the givenhamcrest 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 doesNotExist concode_elem_sep ResultMatcher exists concode_elem_sep ResultMatcher nodeCount concode_elem_sep ResultMatcher nodeCount concode_elem_sep ResultMatcher booleanValue