RequestMatcher function ( final String arg0 ) { return new AbstractXmlRequestMatcher ( ) { @ Override protected void matchInternal ( MockClientHttpRequest arg1 ) throws Exception { xmlHelper . assertXmlEqual ( arg0 , arg1 . getBodyAsString ( ) ) ; } } ; }
parse the request body and the given string as xml and assert that the two are `` similar '' - i.e. they contain the same elements and attributes regardless of order . use of this matcher assumes the xmlunit library is available . concode_field_sep XmlExpectationsHelper xmlHelper concode_field_sep RequestMatcher node concode_elem_sep RequestMatcher contentTypeCompatibleWith concode_elem_sep RequestMatcher contentTypeCompatibleWith concode_elem_sep RequestMatcher string concode_elem_sep RequestMatcher string concode_elem_sep RequestMatcher bytes concode_elem_sep void match concode_elem_sep RequestMatcher formData concode_elem_sep void matchInternal concode_elem_sep RequestMatcher source concode_elem_sep RequestMatcher contentType concode_elem_sep RequestMatcher contentType