assert the total number of errors in the model . concode_field_sep PlaceHolder placeHolder concode_field_sep ResultMatcher attributeErrorCount concode_elem_sep ResultMatcher hasNoErrors concode_elem_sep ResultMatcher hasErrors concode_elem_sep int getErrorCount concode_elem_sep ResultMatcher attributeHasFieldErrors concode_elem_sep ModelAndView getModelAndView concode_elem_sep BindingResult getBindingResult concode_elem_sep ResultMatcher attributeHasFieldErrorCode concode_elem_sep ResultMatcher attributeHasFieldErrorCode concode_elem_sep ResultMatcher attributeExists concode_elem_sep ResultMatcher attributeHasNoErrors concode_elem_sep ResultMatcher size concode_elem_sep ResultMatcher attributeHasErrors concode_elem_sep ResultMatcher attribute concode_elem_sep ResultMatcher attribute concode_elem_sep ResultMatcher attributeDoesNotExist
ResultMatcher function ( final int arg0 ) { return new ResultMatcher ( ) { @ Override public void match ( MvcResult arg1 ) throws Exception { int loc0 = getErrorCount ( getModelAndView ( arg1 ) . getModelMap ( ) ) ; assertEquals ( "srini_string" , arg0 , loc0 ) ; } } ; }