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.ResponseSpecificationImpl core  
  • Constructor Summary

    Constructors
    Constructor Description
    ResponseSpecificationDecorated​(io.restassured.internal.ResponseSpecificationImpl core)  
  • Method Summary

    Modifier and Type Method Description
    protected java.lang.Object clone()  
    boolean equals​(java.lang.Object obj)  
    protected io.restassured.internal.ResponseSpecificationImpl.HamcrestAssertionClosure getassertionClosure()
    This method used when in groovy 'value = response.assertionClosure' called
    protected 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' called
    protected 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' called
    protected 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' called
    protected 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
  • 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:
      response in interface io.restassured.specification.ResponseSpecification
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • clone

      protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
      Overrides:
      clone in class java.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:
      getLogDetail in interface io.restassured.specification.FilterableResponseSpecification
    • statusCode

      public io.restassured.specification.ResponseSpecification statusCode​(int expectedStatusCode)
      Specified by:
      statusCode in interface io.restassured.specification.ResponseSpecification
    • log

      public io.restassured.specification.ResponseLogSpecification log()
      Specified by:
      log in interface io.restassured.specification.ResponseSpecification