asserts the request was redirected to the given url . this methods accepts only exact matches . concode_field_sep AntPathMatcher pathMatcher concode_field_sep ResultMatcher forwardedUrlPattern concode_elem_sep RequestResultMatchers request concode_elem_sep HandlerResultMatchers handler concode_elem_sep CookieResultMatchers cookie concode_elem_sep ResultMatcher redirectedUrlPattern concode_elem_sep JsonPathResultMatchers jsonPath concode_elem_sep ResultMatcher jsonPath concode_elem_sep ContentResultMatchers content concode_elem_sep ViewResultMatchers view concode_elem_sep XpathResultMatchers xpath concode_elem_sep XpathResultMatchers xpath concode_elem_sep HeaderResultMatchers header concode_elem_sep ModelResultMatchers model concode_elem_sep ResultMatcher forwardedUrl concode_elem_sep FlashAttributeResultMatchers flash concode_elem_sep StatusResultMatchers status
ResultMatcher function ( final String arg0 ) { return new ResultMatcher ( ) { @ Override public void match ( MvcResult arg1 ) { assertEquals ( "srini_string" , arg0 , arg1 . getResponse ( ) . getRedirectedUrl ( ) ) ; } } ; }