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 java.lang.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.ResponseSpecificationImplcore -
Constructor Summary
Constructors Constructor Description ResponseSpecificationDecorated(io.restassured.internal.ResponseSpecificationImpl core) -
Method Summary
Modifier and Type Method Description protected java.lang.Objectclone()booleanequals(java.lang.Object obj)protected io.restassured.internal.ResponseSpecificationImpl.HamcrestAssertionClosuregetassertionClosure()This method used when in groovy 'value = response.assertionClosure' calledprotected io.restassured.internal.ResponseSpecificationImpl.HamcrestAssertionClosuregetAssertionClosure()io.restassured.config.RestAssuredConfiggetConfig()io.restassured.filter.log.LogDetailgetLogDetail()protected io.restassured.response.ResponsegetrestAssuredResponse()This method used when in groovy 'value = response.restAssuredResponse' calledprotected io.restassured.response.ResponsegetRestAssuredResponse()io.restassured.internal.ResponseParserRegistrargetRpr()booleanhasBodyAssertionsDefined()inthashCode()io.restassured.specification.ResponseLogSpecificationlog()io.restassured.specification.ResponseSpecificationresponse()protected voidsetassertionClosure(io.restassured.internal.ResponseSpecificationImpl.HamcrestAssertionClosure assertionClosure)This method used when in groovy 'response.assertionClosure = value' calledprotected voidsetAssertionClosure(io.restassured.internal.ResponseSpecificationImpl.HamcrestAssertionClosure assertionClosure)voidsetConfig(io.restassured.config.RestAssuredConfig config)protected voidsetrequestSpecification(io.restassured.specification.RequestSpecification specification)protected voidsetRequestSpecification(io.restassured.specification.RequestSpecification specification)protected voidsetrestAssuredResponse(io.restassured.response.Response restAssuredResponse)This method used when in groovy 'response.restAssuredResponse = value' calledprotected voidsetRestAssuredResponse(io.restassured.response.Response restAssuredResponse)voidsetRpr(io.restassured.internal.ResponseParserRegistrar rpr)io.restassured.specification.ResponseSpecificationstatusCode(int expectedStatusCode)Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.restassured.specification.FilterableResponseSpecification
getResponseContentType, getRootPath, getStatusCode, getStatusLine, hasCookieAssertions, hasHeaderAssertionsMethods 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
-
Field Details
-
core
protected final io.restassured.internal.ResponseSpecificationImpl core
-
-
Constructor Details
-
ResponseSpecificationDecorated
public ResponseSpecificationDecorated(io.restassured.internal.ResponseSpecificationImpl core)
-
-
Method Details
-
response
public io.restassured.specification.ResponseSpecification response()- Specified by:
responsein interfaceio.restassured.specification.ResponseSpecification
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
clone
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.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:
getLogDetailin interfaceio.restassured.specification.FilterableResponseSpecification
-
statusCode
public io.restassured.specification.ResponseSpecification statusCode(int expectedStatusCode)- Specified by:
statusCodein interfaceio.restassured.specification.ResponseSpecification
-
log
public io.restassured.specification.ResponseLogSpecification log()- Specified by:
login interfaceio.restassured.specification.ResponseSpecification
-