ResultMatcher function ( ) { return new ResultMatcher ( ) { @ Override public void match ( MvcResult arg0 ) throws Exception { int loc0 = getErrorCount ( getModelAndView ( arg0 ) . getModelMap ( ) ) ; assertTrue ( "srini_string" , loc0 != 0 ) ; } } ; }
assert the model has errors . concode_field_sep PlaceHolder placeHolder concode_field_sep ResultMatcher attributeErrorCount concode_elem_sep ResultMatcher hasNoErrors 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 concode_elem_sep ResultMatcher errorCount