Class ResponseSpecificationStub

java.lang.Object
net.serenitybdd.rest.stubs.ResponseSpecificationStub
All Implemented Interfaces:
io.restassured.specification.ResponseSpecification

public class ResponseSpecificationStub extends Object implements io.restassured.specification.ResponseSpecification
Created by john on 23/07/2015.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.restassured.specification.ResponseSpecification
    and()
     
    io.restassured.specification.ResponseSpecification
    appendRoot(String pathToAppend)
     
    io.restassured.specification.ResponseSpecification
    appendRoot(String pathToAppend, List<io.restassured.specification.Argument> arguments)
     
    io.restassured.specification.ResponseSpecification
    appendRootPath(String pathToAppend)
     
    io.restassured.specification.ResponseSpecification
    appendRootPath(String pathToAppend, List<io.restassured.specification.Argument> arguments)
     
    io.restassured.specification.ResponseSpecification
    body(String key, List<io.restassured.specification.Argument> arguments, org.hamcrest.Matcher matcher, Object... additionalKeyMatcherPairs)
     
    io.restassured.specification.ResponseSpecification
    body(String path, org.hamcrest.Matcher<?> matcher, Object... additionalKeyMatcherPairs)
     
    io.restassured.specification.ResponseSpecification
    body(List<io.restassured.specification.Argument> arguments, org.hamcrest.Matcher matcher, Object... additionalKeyMatcherPairs)
     
    io.restassured.specification.ResponseSpecification
    body(org.hamcrest.Matcher<?> matcher, org.hamcrest.Matcher<?>... additionalMatchers)
     
    io.restassured.specification.ResponseSpecification
    contentType(io.restassured.http.ContentType contentType)
     
    io.restassured.specification.ResponseSpecification
    contentType(String contentType)
     
    io.restassured.specification.ResponseSpecification
    contentType(org.hamcrest.Matcher<? super String> contentType)
     
    io.restassured.specification.ResponseSpecification
    cookie(String cookieName)
     
    io.restassured.specification.ResponseSpecification
    cookie(String cookieName, io.restassured.matcher.DetailedCookieMatcher detailedCookieMatcher)
     
    io.restassured.specification.ResponseSpecification
    cookie(String cookieName, Object expectedValue)
     
    io.restassured.specification.ResponseSpecification
    cookie(String cookieName, org.hamcrest.Matcher<?> expectedValueMatcher)
     
    io.restassured.specification.ResponseSpecification
    cookies(String firstExpectedCookieName, Object firstExpectedCookieValue, Object... expectedCookieNameValuePairs)
     
    io.restassured.specification.ResponseSpecification
    cookies(Map<String,?> expectedCookies)
     
    io.restassured.specification.ResponseSpecification
    defaultParser(io.restassured.parsing.Parser parser)
     
    io.restassured.specification.ResponseSpecification
    detachRoot(String pathToDetach)
     
    io.restassured.specification.ResponseSpecification
    detachRootPath(String pathToDetach)
     
    io.restassured.specification.ResponseSpecification
     
    io.restassured.specification.RequestSpecification
     
    io.restassured.specification.ResponseSpecification
    header(String headerName, String expectedValue)
     
    <T> io.restassured.specification.ResponseSpecification
    header(String s, Function<String,T> restAssuredFunction, org.hamcrest.Matcher<? super T> matcher)
     
    io.restassured.specification.ResponseSpecification
    header(String headerName, org.hamcrest.Matcher<?> expectedValueMatcher)
     
    io.restassured.specification.ResponseSpecification
    headers(String firstExpectedHeaderName, Object firstExpectedHeaderValue, Object... expectedHeaders)
     
    io.restassured.specification.ResponseSpecification
    headers(Map<String,?> expectedHeaders)
     
    io.restassured.specification.ResponseLogSpecification
    log()
     
    io.restassured.specification.ResponseSpecification
    logDetail(io.restassured.filter.log.LogDetail logDetail)
     
    io.restassured.specification.ResponseSpecification
     
    io.restassured.specification.ResponseSpecification
     
    io.restassured.specification.ResponseSpecification
     
    io.restassured.specification.ResponseSpecification
    parser(String contentType, io.restassured.parsing.Parser parser)
     
    io.restassured.specification.RequestSpecification
     
    io.restassured.specification.ResponseSpecification
     
    io.restassured.specification.ResponseSpecification
    root(String rootPath)
     
    io.restassured.specification.ResponseSpecification
    root(String rootPath, List<io.restassured.specification.Argument> arguments)
     
    io.restassured.specification.ResponseSpecification
    rootPath(String rootPath)
     
    io.restassured.specification.ResponseSpecification
    rootPath(String rootPath, List<io.restassured.specification.Argument> arguments)
     
    io.restassured.specification.ResponseSpecification
    spec(io.restassured.specification.ResponseSpecification responseSpecificationToMerge)
     
    io.restassured.specification.ResponseSpecification
    statusCode(int expectedStatusCode)
     
    io.restassured.specification.ResponseSpecification
    statusCode(org.hamcrest.Matcher<? super Integer> expectedStatusCode)
     
    io.restassured.specification.ResponseSpecification
    statusLine(String expectedStatusLine)
     
    io.restassured.specification.ResponseSpecification
    statusLine(org.hamcrest.Matcher<? super String> expectedStatusLine)
     
    io.restassured.specification.ResponseSpecification
     
    io.restassured.specification.ResponseSpecification
     
    io.restassured.specification.ResponseSpecification
    time(org.hamcrest.Matcher<Long> matcher)
     
    io.restassured.specification.ResponseSpecification
    time(org.hamcrest.Matcher<Long> matcher, TimeUnit timeUnit)
     
    io.restassured.response.Response
    validate(io.restassured.response.Response response)
     
    io.restassured.specification.RequestSender
     
    io.restassured.specification.RequestSpecification
     

    Methods inherited from class java.lang.Object

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

    • ResponseSpecificationStub

      public ResponseSpecificationStub()
  • Method Details

    • validate

      public io.restassured.response.Response validate(io.restassured.response.Response response)
      Specified by:
      validate in interface io.restassured.specification.ResponseSpecification
    • time

      public io.restassured.specification.ResponseSpecification time(org.hamcrest.Matcher<Long> matcher)
      Specified by:
      time in interface io.restassured.specification.ResponseSpecification
    • time

      public io.restassured.specification.ResponseSpecification time(org.hamcrest.Matcher<Long> matcher, TimeUnit timeUnit)
      Specified by:
      time in interface io.restassured.specification.ResponseSpecification
    • body

      public io.restassured.specification.ResponseSpecification body(String key, List<io.restassured.specification.Argument> arguments, org.hamcrest.Matcher matcher, Object... additionalKeyMatcherPairs)
      Specified by:
      body in interface io.restassured.specification.ResponseSpecification
    • body

      public io.restassured.specification.ResponseSpecification body(List<io.restassured.specification.Argument> arguments, org.hamcrest.Matcher matcher, Object... additionalKeyMatcherPairs)
      Specified by:
      body in interface io.restassured.specification.ResponseSpecification
    • statusCode

      public io.restassured.specification.ResponseSpecification statusCode(org.hamcrest.Matcher<? super Integer> expectedStatusCode)
      Specified by:
      statusCode in interface io.restassured.specification.ResponseSpecification
    • statusCode

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

      public io.restassured.specification.ResponseSpecification statusLine(org.hamcrest.Matcher<? super String> expectedStatusLine)
      Specified by:
      statusLine in interface io.restassured.specification.ResponseSpecification
    • statusLine

      public io.restassured.specification.ResponseSpecification statusLine(String expectedStatusLine)
      Specified by:
      statusLine in interface io.restassured.specification.ResponseSpecification
    • headers

      public io.restassured.specification.ResponseSpecification headers(Map<String,?> expectedHeaders)
      Specified by:
      headers in interface io.restassured.specification.ResponseSpecification
    • headers

      public io.restassured.specification.ResponseSpecification headers(String firstExpectedHeaderName, Object firstExpectedHeaderValue, Object... expectedHeaders)
      Specified by:
      headers in interface io.restassured.specification.ResponseSpecification
    • header

      public io.restassured.specification.ResponseSpecification header(String headerName, org.hamcrest.Matcher<?> expectedValueMatcher)
      Specified by:
      header in interface io.restassured.specification.ResponseSpecification
    • header

      public <T> io.restassured.specification.ResponseSpecification header(String s, Function<String,T> restAssuredFunction, org.hamcrest.Matcher<? super T> matcher)
      Specified by:
      header in interface io.restassured.specification.ResponseSpecification
    • header

      public io.restassured.specification.ResponseSpecification header(String headerName, String expectedValue)
      Specified by:
      header in interface io.restassured.specification.ResponseSpecification
    • cookies

      public io.restassured.specification.ResponseSpecification cookies(Map<String,?> expectedCookies)
      Specified by:
      cookies in interface io.restassured.specification.ResponseSpecification
    • cookie

      public io.restassured.specification.ResponseSpecification cookie(String cookieName)
      Specified by:
      cookie in interface io.restassured.specification.ResponseSpecification
    • cookies

      public io.restassured.specification.ResponseSpecification cookies(String firstExpectedCookieName, Object firstExpectedCookieValue, Object... expectedCookieNameValuePairs)
      Specified by:
      cookies in interface io.restassured.specification.ResponseSpecification
    • cookie

      public io.restassured.specification.ResponseSpecification cookie(String cookieName, org.hamcrest.Matcher<?> expectedValueMatcher)
      Specified by:
      cookie in interface io.restassured.specification.ResponseSpecification
    • cookie

      public io.restassured.specification.ResponseSpecification cookie(String cookieName, io.restassured.matcher.DetailedCookieMatcher detailedCookieMatcher)
      Specified by:
      cookie in interface io.restassured.specification.ResponseSpecification
    • cookie

      public io.restassured.specification.ResponseSpecification cookie(String cookieName, Object expectedValue)
      Specified by:
      cookie in interface io.restassured.specification.ResponseSpecification
    • log

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

      public io.restassured.specification.ResponseSpecification rootPath(String rootPath)
      Specified by:
      rootPath in interface io.restassured.specification.ResponseSpecification
    • rootPath

      public io.restassured.specification.ResponseSpecification rootPath(String rootPath, List<io.restassured.specification.Argument> arguments)
      Specified by:
      rootPath in interface io.restassured.specification.ResponseSpecification
    • root

      public io.restassured.specification.ResponseSpecification root(String rootPath, List<io.restassured.specification.Argument> arguments)
      Specified by:
      root in interface io.restassured.specification.ResponseSpecification
    • root

      public io.restassured.specification.ResponseSpecification root(String rootPath)
      Specified by:
      root in interface io.restassured.specification.ResponseSpecification
    • noRoot

      public io.restassured.specification.ResponseSpecification noRoot()
      Specified by:
      noRoot in interface io.restassured.specification.ResponseSpecification
    • appendRootPath

      public io.restassured.specification.ResponseSpecification appendRootPath(String pathToAppend)
      Specified by:
      appendRootPath in interface io.restassured.specification.ResponseSpecification
    • appendRootPath

      public io.restassured.specification.ResponseSpecification appendRootPath(String pathToAppend, List<io.restassured.specification.Argument> arguments)
      Specified by:
      appendRootPath in interface io.restassured.specification.ResponseSpecification
    • noRootPath

      public io.restassured.specification.ResponseSpecification noRootPath()
      Specified by:
      noRootPath in interface io.restassured.specification.ResponseSpecification
    • appendRoot

      public io.restassured.specification.ResponseSpecification appendRoot(String pathToAppend)
      Specified by:
      appendRoot in interface io.restassured.specification.ResponseSpecification
    • detachRootPath

      public io.restassured.specification.ResponseSpecification detachRootPath(String pathToDetach)
      Specified by:
      detachRootPath in interface io.restassured.specification.ResponseSpecification
    • appendRoot

      public io.restassured.specification.ResponseSpecification appendRoot(String pathToAppend, List<io.restassured.specification.Argument> arguments)
      Specified by:
      appendRoot in interface io.restassured.specification.ResponseSpecification
    • detachRoot

      public io.restassured.specification.ResponseSpecification detachRoot(String pathToDetach)
      Specified by:
      detachRoot in interface io.restassured.specification.ResponseSpecification
    • contentType

      public io.restassured.specification.ResponseSpecification contentType(io.restassured.http.ContentType contentType)
      Specified by:
      contentType in interface io.restassured.specification.ResponseSpecification
    • contentType

      public io.restassured.specification.ResponseSpecification contentType(String contentType)
      Specified by:
      contentType in interface io.restassured.specification.ResponseSpecification
    • contentType

      public io.restassured.specification.ResponseSpecification contentType(org.hamcrest.Matcher<? super String> contentType)
      Specified by:
      contentType in interface io.restassured.specification.ResponseSpecification
    • body

      public io.restassured.specification.ResponseSpecification body(org.hamcrest.Matcher<?> matcher, org.hamcrest.Matcher<?>... additionalMatchers)
      Specified by:
      body in interface io.restassured.specification.ResponseSpecification
    • body

      public io.restassured.specification.ResponseSpecification body(String path, org.hamcrest.Matcher<?> matcher, Object... additionalKeyMatcherPairs)
      Specified by:
      body in interface io.restassured.specification.ResponseSpecification
    • when

      public io.restassured.specification.RequestSender when()
      Specified by:
      when in interface io.restassured.specification.ResponseSpecification
    • given

      public io.restassured.specification.RequestSpecification given()
      Specified by:
      given in interface io.restassured.specification.ResponseSpecification
    • that

      public io.restassured.specification.ResponseSpecification that()
      Specified by:
      that in interface io.restassured.specification.ResponseSpecification
    • request

      public io.restassured.specification.RequestSpecification request()
      Specified by:
      request in interface io.restassured.specification.ResponseSpecification
    • response

      public io.restassured.specification.ResponseSpecification response()
      Specified by:
      response in interface io.restassured.specification.ResponseSpecification
    • and

      public io.restassured.specification.ResponseSpecification and()
      Specified by:
      and in interface io.restassured.specification.ResponseSpecification
    • with

      public io.restassured.specification.RequestSpecification with()
      Specified by:
      with in interface io.restassured.specification.ResponseSpecification
    • then

      public io.restassured.specification.ResponseSpecification then()
      Specified by:
      then in interface io.restassured.specification.ResponseSpecification
    • expect

      public io.restassured.specification.ResponseSpecification expect()
      Specified by:
      expect in interface io.restassured.specification.ResponseSpecification
    • spec

      public io.restassured.specification.ResponseSpecification spec(io.restassured.specification.ResponseSpecification responseSpecificationToMerge)
      Specified by:
      spec in interface io.restassured.specification.ResponseSpecification
    • parser

      public io.restassured.specification.ResponseSpecification parser(String contentType, io.restassured.parsing.Parser parser)
      Specified by:
      parser in interface io.restassured.specification.ResponseSpecification
    • defaultParser

      public io.restassured.specification.ResponseSpecification defaultParser(io.restassured.parsing.Parser parser)
      Specified by:
      defaultParser in interface io.restassured.specification.ResponseSpecification
    • logDetail

      public io.restassured.specification.ResponseSpecification logDetail(io.restassured.filter.log.LogDetail logDetail)
      Specified by:
      logDetail in interface io.restassured.specification.ResponseSpecification
    • onFailMessage

      public io.restassured.specification.ResponseSpecification onFailMessage(String s)
      Specified by:
      onFailMessage in interface io.restassured.specification.ResponseSpecification