public class RestAssuredResponseImpl extends RestAssuredResponseOptionsImpl<Response> implements Response
groovyResponse
Constructor and Description |
---|
RestAssuredResponseImpl() |
Modifier and Type | Method and Description |
---|---|
void |
parseResponse(Object httpResponse,
Object content,
boolean hasBodyAssertions,
ResponseParserRegistrar responseParserRegistrar) |
ValidatableResponse |
then()
Returns a validatable response that's lets you validate the response.
|
andReturn, as, as, as, as, as, as, as, asByteArray, asInputStream, asPrettyString, asString, asString, body, contentType, cookie, cookies, detailedCookie, detailedCookies, getBody, getConfig, getConnectionManager, getContent, getContentType, getCookie, getCookies, getDecoderConfig, getDefaultContentType, getDetailedCookie, getDetailedCookies, getFilterContextProperties, getGroovyResponse, getHasExpectations, getHeader, getHeaders, getLogRepository, getResponseHeaders, getRpr, getSessionId, getSessionIdName, getStatusCode, getStatusLine, getTime, getTimeIn, header, headers, htmlPath, isInputStream, jsonPath, jsonPath, path, peek, prettyPeek, prettyPrint, print, response, sessionId, setConfig, setConnectionManager, setContent, setContentType, setCookies, setDecoderConfig, setDefaultContentType, setFilterContextProperties, setGroovyResponse, setHasExpectations, setLogRepository, setResponseHeaders, setRpr, setSessionIdName, setStatusCode, setStatusLine, statusCode, statusLine, thenReturn, time, timeIn, xmlPath, xmlPath, xmlPath
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
peek, prettyPeek, prettyPrint, print
as, as, as, as, as, as, as, htmlPath, jsonPath, jsonPath, path, xmlPath, xmlPath, xmlPath
asByteArray, asInputStream, asPrettyString, asString
andReturn, body, contentType, cookie, cookies, detailedCookie, detailedCookies, getBody, getContentType, getCookie, getCookies, getDetailedCookie, getDetailedCookies, getHeader, getHeaders, getSessionId, getStatusCode, getStatusLine, getTime, getTimeIn, header, headers, sessionId, statusCode, statusLine, thenReturn, time, timeIn
public void parseResponse(Object httpResponse, Object content, boolean hasBodyAssertions, ResponseParserRegistrar responseParserRegistrar)
public ValidatableResponse then()
Validatable
given(). param("firstName", "John"). param("lastName", "Doe"). when(). get("/greet"). then(). body("greeting", equalTo("John Doe"));
then
in interface Validatable<ValidatableResponse,Response>
Copyright © 2010–2023. All rights reserved.