Class RestResponse

  • Direct Known Subclasses:
    RestTextResponse

    public class RestResponse
    extends java.lang.Object
    Defines a Rest Response
    Author:
    Paul Brodner
    • Constructor Summary

      Constructors 
      Constructor Description
      RestResponse​(io.restassured.response.Response response)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.restassured.response.ValidatableResponse assertThat()  
      io.restassured.response.Response getResponse()  
      java.lang.String getStatusCode()  
      void setResponse​(io.restassured.response.Response response)  
      <T> T toModel​(java.lang.Class<T> classz)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RestResponse

        public RestResponse​(io.restassured.response.Response response)
    • Method Detail

      • getStatusCode

        public java.lang.String getStatusCode()
      • getResponse

        public io.restassured.response.Response getResponse()
      • setResponse

        public void setResponse​(io.restassured.response.Response response)
      • toModel

        public <T> T toModel​(java.lang.Class<T> classz)
      • assertThat

        public io.restassured.response.ValidatableResponse assertThat()