public class RestAssuredResponseImpl extends RestAssuredResponseOptionsImpl<Response> implements Response, groovy.lang.GroovyObject
groovyResponse
Constructor and Description |
---|
RestAssuredResponseImpl() |
Modifier and Type | Method and Description |
---|---|
groovy.lang.MetaClass |
getMetaClass() |
Object |
getProperty(String property) |
Object |
invokeMethod(String method,
Object arguments) |
void |
parseResponse(Object httpResponse,
Object content,
Object hasBodyAssertions,
ResponseParserRegistrar responseParserRegistrar) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperty(String property,
Object value) |
ValidatableResponse |
then()
Returns a validatable response that's lets you validate the response.
|
andReturn, as, as, as, asByteArray, asInputStream, 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, htmlPath, jsonPath, jsonPath, path, xmlPath, xmlPath, xmlPath
asByteArray, asInputStream, 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 groovy.lang.MetaClass getMetaClass()
getMetaClass
in interface groovy.lang.GroovyObject
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in interface groovy.lang.GroovyObject
public Object invokeMethod(String method, Object arguments)
invokeMethod
in interface groovy.lang.GroovyObject
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
public void setProperty(String property, Object value)
setProperty
in interface groovy.lang.GroovyObject
public void parseResponse(Object httpResponse, Object content, Object 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–2016. All rights reserved.