java.lang.Object
net.serenitybdd.rest.stubs.ResponseStub
- All Implemented Interfaces:
io.restassured.response.Response,io.restassured.response.ResponseBody<io.restassured.response.Response>,io.restassured.response.ResponseBodyData,io.restassured.response.ResponseBodyExtractionOptions,io.restassured.response.ResponseOptions<io.restassured.response.Response>,io.restassured.response.Validatable<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
Created by john on 23/07/2015.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.restassured.response.Response<T> Tas(io.restassured.common.mapper.TypeRef<T> typeRef) <T> T<T> T<T> T<T> T<T> T<T> Tbyte[]asString()io.restassured.response.ResponseBodybody()cookies()io.restassured.http.CookiedetailedCookie(String name) io.restassured.http.Cookiesio.restassured.response.ResponseBodygetBody()io.restassured.http.CookiegetDetailedCookie(String name) io.restassured.http.Cookiesio.restassured.http.HeadersintlonggetTime()longio.restassured.http.Headersheaders()io.restassured.path.xml.XmlPathhtmlPath()io.restassured.path.json.JsonPathjsonPath()io.restassured.path.json.JsonPathjsonPath(io.restassured.path.json.config.JsonPathConfig config) <T> Tio.restassured.response.Responsepeek()io.restassured.response.Responseprint()intio.restassured.response.ValidatableResponsethen()io.restassured.response.Responselongtime()longio.restassured.path.xml.XmlPathxmlPath()io.restassured.path.xml.XmlPathxmlPath(io.restassured.path.xml.config.XmlPathConfig config) io.restassured.path.xml.XmlPathxmlPath(io.restassured.path.xml.XmlPath.CompatibilityMode compatibilityMode)
-
Constructor Details
-
ResponseStub
public ResponseStub()
-
-
Method Details
-
then
public io.restassured.response.ValidatableResponse then()- Specified by:
thenin interfaceio.restassured.response.Validatable<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
print
- Specified by:
printin interfaceio.restassured.response.ResponseBody<io.restassured.response.Response>
-
prettyPrint
- Specified by:
prettyPrintin interfaceio.restassured.response.ResponseBody<io.restassured.response.Response>
-
peek
public io.restassured.response.Response peek()- Specified by:
peekin interfaceio.restassured.response.ResponseBody<io.restassured.response.Response>
-
prettyPeek
public io.restassured.response.Response prettyPeek()- Specified by:
prettyPeekin interfaceio.restassured.response.ResponseBody<io.restassured.response.Response>
-
as
- Specified by:
asin interfaceio.restassured.response.ResponseBodyExtractionOptions
-
as
- Specified by:
asin interfaceio.restassured.response.ResponseBodyExtractionOptions
-
as
- Specified by:
asin interfaceio.restassured.response.ResponseBodyExtractionOptions
-
as
public <T> T as(io.restassured.common.mapper.TypeRef<T> typeRef) - Specified by:
asin interfaceio.restassured.response.ResponseBodyExtractionOptions
-
as
- Specified by:
asin interfaceio.restassured.response.ResponseBodyExtractionOptions
-
as
- Specified by:
asin interfaceio.restassured.response.ResponseBodyExtractionOptions
-
as
- Specified by:
asin interfaceio.restassured.response.ResponseBodyExtractionOptions
-
jsonPath
public io.restassured.path.json.JsonPath jsonPath()- Specified by:
jsonPathin interfaceio.restassured.response.ResponseBodyExtractionOptions
-
jsonPath
public io.restassured.path.json.JsonPath jsonPath(io.restassured.path.json.config.JsonPathConfig config) - Specified by:
jsonPathin interfaceio.restassured.response.ResponseBodyExtractionOptions
-
xmlPath
public io.restassured.path.xml.XmlPath xmlPath()- Specified by:
xmlPathin interfaceio.restassured.response.ResponseBodyExtractionOptions
-
xmlPath
public io.restassured.path.xml.XmlPath xmlPath(io.restassured.path.xml.config.XmlPathConfig config) - Specified by:
xmlPathin interfaceio.restassured.response.ResponseBodyExtractionOptions
-
xmlPath
public io.restassured.path.xml.XmlPath xmlPath(io.restassured.path.xml.XmlPath.CompatibilityMode compatibilityMode) - Specified by:
xmlPathin interfaceio.restassured.response.ResponseBodyExtractionOptions
-
htmlPath
public io.restassured.path.xml.XmlPath htmlPath()- Specified by:
htmlPathin interfaceio.restassured.response.ResponseBodyExtractionOptions
-
path
- Specified by:
pathin interfaceio.restassured.response.ResponseBodyExtractionOptions
-
asString
- Specified by:
asStringin interfaceio.restassured.response.ResponseBodyData
-
asPrettyString
- Specified by:
asPrettyStringin interfaceio.restassured.response.ResponseBodyData
-
asByteArray
public byte[] asByteArray()- Specified by:
asByteArrayin interfaceio.restassured.response.ResponseBodyData
-
asInputStream
- Specified by:
asInputStreamin interfaceio.restassured.response.ResponseBodyData
-
andReturn
public io.restassured.response.Response andReturn()- Specified by:
andReturnin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
thenReturn
public io.restassured.response.Response thenReturn()- Specified by:
thenReturnin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
body
public io.restassured.response.ResponseBody body()- Specified by:
bodyin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
getBody
public io.restassured.response.ResponseBody getBody()- Specified by:
getBodyin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
headers
public io.restassured.http.Headers headers()- Specified by:
headersin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
getHeaders
public io.restassured.http.Headers getHeaders()- Specified by:
getHeadersin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
header
- Specified by:
headerin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
getHeader
- Specified by:
getHeaderin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
cookies
- Specified by:
cookiesin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
detailedCookies
public io.restassured.http.Cookies detailedCookies()- Specified by:
detailedCookiesin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
getCookies
- Specified by:
getCookiesin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
getDetailedCookies
public io.restassured.http.Cookies getDetailedCookies()- Specified by:
getDetailedCookiesin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
cookie
- Specified by:
cookiein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
getCookie
- Specified by:
getCookiein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
detailedCookie
- Specified by:
detailedCookiein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
getDetailedCookie
- Specified by:
getDetailedCookiein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
contentType
- Specified by:
contentTypein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
getContentType
- Specified by:
getContentTypein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
statusLine
- Specified by:
statusLinein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
getStatusLine
- Specified by:
getStatusLinein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
sessionId
- Specified by:
sessionIdin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
getSessionId
- Specified by:
getSessionIdin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
statusCode
public int statusCode()- Specified by:
statusCodein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
getStatusCode
public int getStatusCode()- Specified by:
getStatusCodein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
time
public long time()- Specified by:
timein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
timeIn
- Specified by:
timeInin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
getTime
public long getTime()- Specified by:
getTimein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-
getTimeIn
- Specified by:
getTimeInin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>
-