@Override public boolean matchesSafely(Response actualResponse) { String actualContent = actualResponse.getContent(); return bodyMatcher.matches(actualContent); }
@Override public boolean matchesSafely(Response actualResponse) { String actualContent = actualResponse.getContent(); return bodyMatcher.matches(actualContent); }
/** * Converts the content of the response to a JSON node. * * @param response The response whose content is to be converted * @return The converted JSON node */ public static JsonNode asJson(Response response) { return asJson(response.getContent()); }
/** * Converts the content of the response to a JSON node. * * @param response The response whose content is to be converted * @return The converted JSON node */ public static JsonNode asJson(Response response) { return asJson(response.getContent()); }
/** * Converts the body of the given Response to an XML element. * * @param response The response to be converted * @return The converted element */ public static Element asXml(Response response) { return XmlUtil.asXml(response.getContent()); }
/** * Converts the body of the given Response to an XML element. * * @param response The response to be converted * @return The converted element */ public static Element asXml(Response response) { return XmlUtil.asXml(response.getContent()); }