/** * Validates an XML PUT response against an array of XPath test strings * * @param request the PUT request to process * @param content the content to send with the PUT request * @param tests the validating XPath tests * @return null if all good, otherwise the first test that fails. * @exception Exception any exception in the response. * @exception java.io.IOException if there is a problem writing the XML */ public String validatePut(String request, String content, String... tests) throws Exception { String res = put(request, content); return validateXPath(res, tests); }
boolean failed = true; try { response = restTestHarness.put(request, content); failed = false; } finally {