/** * POST the specified classpath resource to the specified HTTP endpoint and perform an XML compare * between the HTTP response and the specified expected classpath response resource. * @param endpointURL The HTTP endpoint URL. * @param requestResource The classpath resource to be posted to the endpoint. * @param expectedResponseResource The classpath resource to use to perform the XML test on the response. * @return The HTTP response payload. */ public String postResourceAndTestXML(String endpointURL, String requestResource, String expectedResponseResource) { String response = postResource(endpointURL, requestResource); getTestKit().compareXMLToResource(response, expectedResponseResource); return response; } /**
/** * POST the specified classpath resource to the specified HTTP endpoint and perform an XML compare * between the HTTP response and the specified expected classpath response resource. * @param endpointURL The HTTP endpoint URL. * @param requestResource The classpath resource to be posted to the endpoint. * @param expectedResponseResource The classpath resource to use to perform the XML test on the response. * @return The HTTP response payload. */ public String postResourceAndTestXML(String endpointURL, String requestResource, String expectedResponseResource) { String response = postResource(endpointURL, requestResource); getTestKit().compareXMLToResource(response, expectedResponseResource); return response; } /**