asserts the request was forwarded to the given url . this method accepts exact matches against the expanded url template . 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 ResultMatcher redirectedUrl concode_elem_sep HeaderResultMatchers header concode_elem_sep ModelResultMatchers model concode_elem_sep FlashAttributeResultMatchers flash concode_elem_sep StatusResultMatchers status
ResultMatcher function ( String arg0 , Object ... arg1 ) { String loc0 = UriComponentsBuilder . fromUriString ( arg0 ) . buildAndExpand ( arg1 ) . encode ( ) . toUriString ( ) ; return result -> assertEquals ( "srini_string" , loc0 , result . getResponse ( ) . getForwardedUrl ( ) ) ; }