assert a cookie 's domain with a hamcrest matcher . concode_field_sep PlaceHolder placeHolder concode_field_sep ResultMatcher path concode_elem_sep ResultMatcher path concode_elem_sep ResultMatcher maxAge concode_elem_sep ResultMatcher maxAge concode_elem_sep ResultMatcher doesNotExist concode_elem_sep ResultMatcher exists concode_elem_sep ResultMatcher comment concode_elem_sep ResultMatcher comment concode_elem_sep ResultMatcher secure concode_elem_sep ResultMatcher value concode_elem_sep ResultMatcher value concode_elem_sep ResultMatcher version concode_elem_sep ResultMatcher version
ResultMatcher function ( final String arg0 , final Matcher < ? super String > arg1 ) { return new ResultMatcher ( ) { @ Override public void match ( MvcResult arg2 ) throws Exception { Cookie loc0 = arg2 . getResponse ( ) . getCookie ( arg0 ) ; assertThat ( "srini_string" , loc0 . getDomain ( ) , arg1 ) ; } } ; }