@Override public String toString() { return createSummaryString(Response.MAX_BODY_DISPLAY_LENGTH); }
@Override public boolean matchesSafely(Response actualResponse) { String actualContent = actualResponse.getContent(); return bodyMatcher.matches(actualContent); }
@Override public void tinyDump() { System.out.println(this.toCompactString()); }
@Override protected boolean matchesSafely(Response item) { return statusCodeMatcher.matches(item.getStatusCode()); }
@Override public void bigDump() { System.out.println(this.toBigString()); }
@Override public void dump() { System.out.println(this.toString()); }
@Override public Element asXml() { return XmlUtil.asXml(this.getContent()); }
@Override public boolean matchesSafely(Response actualResponse) { String actualContent = actualResponse.getContent(); return bodyMatcher.matches(actualContent); }
@Override public String toString() { return createSummaryString(Response.MAX_BODY_DISPLAY_LENGTH); }
@Override protected void describeMismatchSafely(Response item, Description mismatchDescription) { mismatchDescription.appendText("Response has status code: " + item.getStatusCode()); }
@Override public void tinyDump() { System.out.println(this.toCompactString()); }
@Override public void bigDump() { System.out.println(this.toBigString()); }
@Override public void dump() { System.out.println(this.toString()); }
/** * 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()); }
@Override public String toBigString() { return createSummaryString(this.content.length()); }
@Override protected boolean matchesSafely(Response item) { return statusCodeMatcher.matches(item.getStatusCode()); }
/** * 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()); }
@Override public String toBigString() { return createSummaryString(this.content.length()); }
/** * 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()); }