Package net.serenitybdd.rest.decorators
Class ResponseSpecificationDecorated
- java.lang.Object
-
- net.serenitybdd.rest.decorators.ResponseSpecificationDecorated
-
- All Implemented Interfaces:
io.restassured.specification.FilterableResponseSpecification
,io.restassured.specification.ResponseSpecification
public abstract class ResponseSpecificationDecorated extends Object implements io.restassured.specification.FilterableResponseSpecification
User: YamStranger Date: 3/16/16 Time: 2:08 PM
-
-
Field Summary
Fields Modifier and Type Field Description protected io.restassured.internal.ResponseSpecificationImpl
core
-
Constructor Summary
Constructors Constructor Description ResponseSpecificationDecorated(io.restassured.internal.ResponseSpecificationImpl core)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
clone()
boolean
equals(Object obj)
protected io.restassured.internal.ResponseSpecificationImpl.HamcrestAssertionClosure
getassertionClosure()
This method used when in groovy 'value = response.assertionClosure' calledprotected io.restassured.internal.ResponseSpecificationImpl.HamcrestAssertionClosure
getAssertionClosure()
io.restassured.config.RestAssuredConfig
getConfig()
io.restassured.filter.log.LogDetail
getLogDetail()
protected io.restassured.response.Response
getrestAssuredResponse()
This method used when in groovy 'value = response.restAssuredResponse' calledprotected io.restassured.response.Response
getRestAssuredResponse()
io.restassured.internal.ResponseParserRegistrar
getRpr()
boolean
hasBodyAssertionsDefined()
int
hashCode()
io.restassured.specification.ResponseLogSpecification
log()
io.restassured.specification.ResponseSpecification
response()
protected void
setassertionClosure(io.restassured.internal.ResponseSpecificationImpl.HamcrestAssertionClosure assertionClosure)
This method used when in groovy 'response.assertionClosure = value' calledprotected void
setAssertionClosure(io.restassured.internal.ResponseSpecificationImpl.HamcrestAssertionClosure assertionClosure)
void
setConfig(io.restassured.config.RestAssuredConfig config)
protected void
setrequestSpecification(io.restassured.specification.RequestSpecification specification)
protected void
setRequestSpecification(io.restassured.specification.RequestSpecification specification)
protected void
setrestAssuredResponse(io.restassured.response.Response restAssuredResponse)
This method used when in groovy 'response.restAssuredResponse = value' calledprotected void
setRestAssuredResponse(io.restassured.response.Response restAssuredResponse)
void
setRpr(io.restassured.internal.ResponseParserRegistrar rpr)
io.restassured.specification.ResponseSpecification
statusCode(int expectedStatusCode)
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.restassured.specification.FilterableResponseSpecification
getResponseContentType, getRootPath, getStatusCode, getStatusLine, hasCookieAssertions, hasHeaderAssertions
-
Methods inherited from interface io.restassured.specification.ResponseSpecification
and, appendRoot, appendRoot, appendRootPath, appendRootPath, body, body, body, body, contentType, contentType, contentType, cookie, cookie, cookie, cookie, cookies, cookies, defaultParser, detachRoot, detachRootPath, expect, given, header, header, header, headers, headers, logDetail, noRoot, noRootPath, parser, request, root, root, rootPath, rootPath, spec, statusCode, statusLine, statusLine, that, then, time, time, validate, when, with
-
-
-
-
Method Detail
-
response
public io.restassured.specification.ResponseSpecification response()
- Specified by:
response
in interfaceio.restassured.specification.ResponseSpecification
-
clone
protected Object clone() throws CloneNotSupportedException
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
setrequestSpecification
protected void setrequestSpecification(io.restassured.specification.RequestSpecification specification)
-
setRequestSpecification
protected void setRequestSpecification(io.restassured.specification.RequestSpecification specification)
-
setassertionClosure
protected void setassertionClosure(io.restassured.internal.ResponseSpecificationImpl.HamcrestAssertionClosure assertionClosure)
This method used when in groovy 'response.assertionClosure = value' called- Parameters:
assertionClosure
- HamcrestAssertionClosure value that will be set to repose specification
-
setAssertionClosure
protected void setAssertionClosure(io.restassured.internal.ResponseSpecificationImpl.HamcrestAssertionClosure assertionClosure)
-
getassertionClosure
protected io.restassured.internal.ResponseSpecificationImpl.HamcrestAssertionClosure getassertionClosure()
This method used when in groovy 'value = response.assertionClosure' called- Returns:
- HamcrestAssertionClosure value of current object
-
getAssertionClosure
protected io.restassured.internal.ResponseSpecificationImpl.HamcrestAssertionClosure getAssertionClosure()
-
setrestAssuredResponse
protected void setrestAssuredResponse(io.restassured.response.Response restAssuredResponse)
This method used when in groovy 'response.restAssuredResponse = value' called- Parameters:
restAssuredResponse
- Response value that will be set to rest assured response
-
setRestAssuredResponse
protected void setRestAssuredResponse(io.restassured.response.Response restAssuredResponse)
-
getrestAssuredResponse
protected io.restassured.response.Response getrestAssuredResponse()
This method used when in groovy 'value = response.restAssuredResponse' called- Returns:
- HamcrestAssertionClosure value of current object
-
getRestAssuredResponse
protected io.restassured.response.Response getRestAssuredResponse()
-
getRpr
public io.restassured.internal.ResponseParserRegistrar getRpr()
-
setRpr
public void setRpr(io.restassured.internal.ResponseParserRegistrar rpr)
-
hasBodyAssertionsDefined
public boolean hasBodyAssertionsDefined()
-
setConfig
public void setConfig(io.restassured.config.RestAssuredConfig config)
-
getConfig
public io.restassured.config.RestAssuredConfig getConfig()
-
getLogDetail
public io.restassured.filter.log.LogDetail getLogDetail()
- Specified by:
getLogDetail
in interfaceio.restassured.specification.FilterableResponseSpecification
-
statusCode
public io.restassured.specification.ResponseSpecification statusCode(int expectedStatusCode)
- Specified by:
statusCode
in interfaceio.restassured.specification.ResponseSpecification
-
log
public io.restassured.specification.ResponseLogSpecification log()
- Specified by:
log
in interfaceio.restassured.specification.ResponseSpecification
-
-