Package net.serenitybdd.rest.stubs
Class ValidatableResponseStub
java.lang.Object
net.serenitybdd.rest.stubs.ValidatableResponseStub
- All Implemented Interfaces:
io.restassured.response.ValidatableResponse,io.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
public class ValidatableResponseStub
extends java.lang.Object
implements io.restassured.response.ValidatableResponse
Created by john on 23/07/2015.
-
Constructor Summary
Constructors Constructor Description ValidatableResponseStub() -
Method Summary
Modifier and Type Method Description io.restassured.response.ValidatableResponseand()io.restassured.response.ValidatableResponseappendRoot(java.lang.String pathToAppend)io.restassured.response.ValidatableResponseappendRoot(java.lang.String pathToAppend, java.util.List<io.restassured.specification.Argument> arguments)io.restassured.response.ValidatableResponseappendRootPath(java.lang.String pathToAppend)io.restassured.response.ValidatableResponseappendRootPath(java.lang.String pathToAppend, java.util.List<io.restassured.specification.Argument> arguments)io.restassured.response.ValidatableResponseassertThat()io.restassured.response.ValidatableResponsebody(java.lang.String path, io.restassured.matcher.ResponseAwareMatcher<io.restassured.response.Response> responseAwareMatcher)io.restassured.response.ValidatableResponsebody(java.lang.String path, java.util.List<io.restassured.specification.Argument> arguments, io.restassured.matcher.ResponseAwareMatcher<io.restassured.response.Response> responseAwareMatcher)io.restassured.response.ValidatableResponsebody(java.lang.String path, java.util.List<io.restassured.specification.Argument> arguments, org.hamcrest.Matcher matcher, java.lang.Object... additionalKeyMatcherPairs)io.restassured.response.ValidatableResponsebody(java.lang.String path, org.hamcrest.Matcher<?> matcher, java.lang.Object... additionalKeyMatcherPairs)io.restassured.response.ValidatableResponsebody(java.util.List<io.restassured.specification.Argument> arguments, io.restassured.matcher.ResponseAwareMatcher<io.restassured.response.Response> responseAwareMatcher)io.restassured.response.ValidatableResponsebody(java.util.List<io.restassured.specification.Argument> arguments, org.hamcrest.Matcher matcher, java.lang.Object... additionalKeyMatcherPairs)io.restassured.response.ValidatableResponsebody(org.hamcrest.Matcher<?> matcher, org.hamcrest.Matcher<?>... additionalMatchers)io.restassured.response.ValidatableResponsecontentType(io.restassured.http.ContentType contentType)io.restassured.response.ValidatableResponsecontentType(java.lang.String contentType)io.restassured.response.ValidatableResponsecontentType(org.hamcrest.Matcher<? super java.lang.String> contentType)io.restassured.response.ValidatableResponsecookie(java.lang.String cookieName)io.restassured.response.ValidatableResponsecookie(java.lang.String cookieName, io.restassured.matcher.DetailedCookieMatcher detailedCookieMatcher)io.restassured.response.ValidatableResponsecookie(java.lang.String cookieName, java.lang.Object expectedValue)io.restassured.response.ValidatableResponsecookie(java.lang.String cookieName, org.hamcrest.Matcher<?> expectedValueMatcher)io.restassured.response.ValidatableResponsecookies(java.lang.String firstExpectedCookieName, java.lang.Object firstExpectedCookieValue, java.lang.Object... expectedCookieNameValuePairs)io.restassured.response.ValidatableResponsecookies(java.util.Map<java.lang.String,?> expectedCookies)io.restassured.response.ValidatableResponsedefaultParser(io.restassured.parsing.Parser parser)io.restassured.response.ValidatableResponsedetachRoot(java.lang.String pathToDetach)io.restassured.response.ValidatableResponsedetachRootPath(java.lang.String pathToDetach)io.restassured.response.ExtractableResponse<io.restassured.response.Response>extract()io.restassured.response.ValidatableResponseheader(java.lang.String s, io.restassured.matcher.ResponseAwareMatcher<io.restassured.response.Response> responseAwareMatcher)io.restassured.response.ValidatableResponseheader(java.lang.String headerName, java.lang.String expectedValue)<V> io.restassured.response.ValidatableResponseheader(java.lang.String s, java.util.function.Function<java.lang.String,V> restAssuredFunction, org.hamcrest.Matcher<? super V> matcher)io.restassured.response.ValidatableResponseheader(java.lang.String headerName, org.hamcrest.Matcher<?> expectedValueMatcher)io.restassured.response.ValidatableResponseheaders(java.lang.String firstExpectedHeaderName, java.lang.Object firstExpectedHeaderValue, java.lang.Object... expectedHeaders)io.restassured.response.ValidatableResponseheaders(java.util.Map<java.lang.String,?> expectedHeaders)io.restassured.response.ValidatableResponseLogSpec<io.restassured.response.ValidatableResponse,io.restassured.response.Response>log()io.restassured.response.ValidatableResponsenoRoot()io.restassured.response.ValidatableResponsenoRootPath()io.restassured.response.ValidatableResponseparser(java.lang.String contentType, io.restassured.parsing.Parser parser)io.restassured.response.ValidatableResponseroot(java.lang.String rootPath)io.restassured.response.ValidatableResponseroot(java.lang.String rootPath, java.util.List<io.restassured.specification.Argument> arguments)io.restassured.response.ValidatableResponserootPath(java.lang.String rootPath)io.restassured.response.ValidatableResponserootPath(java.lang.String rootPath, java.util.List<io.restassured.specification.Argument> arguments)io.restassured.response.ValidatableResponsespec(io.restassured.specification.ResponseSpecification responseSpecificationToMerge)io.restassured.response.ValidatableResponsestatusCode(int expectedStatusCode)io.restassured.response.ValidatableResponsestatusCode(org.hamcrest.Matcher<? super java.lang.Integer> expectedStatusCode)io.restassured.response.ValidatableResponsestatusLine(java.lang.String expectedStatusLine)io.restassured.response.ValidatableResponsestatusLine(org.hamcrest.Matcher<? super java.lang.String> expectedStatusLine)io.restassured.response.ValidatableResponsetime(org.hamcrest.Matcher<java.lang.Long> matcher)io.restassured.response.ValidatableResponsetime(org.hamcrest.Matcher<java.lang.Long> matcher, java.util.concurrent.TimeUnit timeUnit)io.restassured.response.ValidatableResponseusing()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ValidatableResponseStub
public ValidatableResponseStub()
-
-
Method Details
-
body
public io.restassured.response.ValidatableResponse body(java.lang.String path, java.util.List<io.restassured.specification.Argument> arguments, org.hamcrest.Matcher matcher, java.lang.Object... additionalKeyMatcherPairs)- Specified by:
bodyin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
body
public io.restassured.response.ValidatableResponse body(java.util.List<io.restassured.specification.Argument> arguments, org.hamcrest.Matcher matcher, java.lang.Object... additionalKeyMatcherPairs)- Specified by:
bodyin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
body
public io.restassured.response.ValidatableResponse body(java.util.List<io.restassured.specification.Argument> arguments, io.restassured.matcher.ResponseAwareMatcher<io.restassured.response.Response> responseAwareMatcher)- Specified by:
bodyin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
statusCode
public io.restassured.response.ValidatableResponse statusCode(org.hamcrest.Matcher<? super java.lang.Integer> expectedStatusCode)- Specified by:
statusCodein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
statusCode
public io.restassured.response.ValidatableResponse statusCode(int expectedStatusCode)- Specified by:
statusCodein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
statusLine
public io.restassured.response.ValidatableResponse statusLine(org.hamcrest.Matcher<? super java.lang.String> expectedStatusLine)- Specified by:
statusLinein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
statusLine
public io.restassured.response.ValidatableResponse statusLine(java.lang.String expectedStatusLine)- Specified by:
statusLinein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
headers
public io.restassured.response.ValidatableResponse headers(java.util.Map<java.lang.String,?> expectedHeaders)- Specified by:
headersin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
headers
public io.restassured.response.ValidatableResponse headers(java.lang.String firstExpectedHeaderName, java.lang.Object firstExpectedHeaderValue, java.lang.Object... expectedHeaders)- Specified by:
headersin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
header
public io.restassured.response.ValidatableResponse header(java.lang.String headerName, org.hamcrest.Matcher<?> expectedValueMatcher)- Specified by:
headerin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
header
public io.restassured.response.ValidatableResponse header(java.lang.String s, io.restassured.matcher.ResponseAwareMatcher<io.restassured.response.Response> responseAwareMatcher)- Specified by:
headerin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
header
public <V> io.restassured.response.ValidatableResponse header(java.lang.String s, java.util.function.Function<java.lang.String,V> restAssuredFunction, org.hamcrest.Matcher<? super V> matcher)- Specified by:
headerin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
header
public io.restassured.response.ValidatableResponse header(java.lang.String headerName, java.lang.String expectedValue)- Specified by:
headerin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
cookies
public io.restassured.response.ValidatableResponse cookies(java.util.Map<java.lang.String,?> expectedCookies)- Specified by:
cookiesin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
cookie
public io.restassured.response.ValidatableResponse cookie(java.lang.String cookieName)- Specified by:
cookiein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
cookies
public io.restassured.response.ValidatableResponse cookies(java.lang.String firstExpectedCookieName, java.lang.Object firstExpectedCookieValue, java.lang.Object... expectedCookieNameValuePairs)- Specified by:
cookiesin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
cookie
public io.restassured.response.ValidatableResponse cookie(java.lang.String cookieName, org.hamcrest.Matcher<?> expectedValueMatcher)- Specified by:
cookiein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
cookie
public io.restassured.response.ValidatableResponse cookie(java.lang.String cookieName, io.restassured.matcher.DetailedCookieMatcher detailedCookieMatcher)- Specified by:
cookiein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
cookie
public io.restassured.response.ValidatableResponse cookie(java.lang.String cookieName, java.lang.Object expectedValue)- Specified by:
cookiein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
rootPath
public io.restassured.response.ValidatableResponse rootPath(java.lang.String rootPath)- Specified by:
rootPathin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
rootPath
public io.restassured.response.ValidatableResponse rootPath(java.lang.String rootPath, java.util.List<io.restassured.specification.Argument> arguments)- Specified by:
rootPathin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
root
public io.restassured.response.ValidatableResponse root(java.lang.String rootPath, java.util.List<io.restassured.specification.Argument> arguments)- Specified by:
rootin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
root
public io.restassured.response.ValidatableResponse root(java.lang.String rootPath)- Specified by:
rootin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
noRoot
public io.restassured.response.ValidatableResponse noRoot()- Specified by:
noRootin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
noRootPath
public io.restassured.response.ValidatableResponse noRootPath()- Specified by:
noRootPathin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
appendRootPath
public io.restassured.response.ValidatableResponse appendRootPath(java.lang.String pathToAppend)- Specified by:
appendRootPathin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
appendRoot
public io.restassured.response.ValidatableResponse appendRoot(java.lang.String pathToAppend)- Specified by:
appendRootin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
appendRootPath
public io.restassured.response.ValidatableResponse appendRootPath(java.lang.String pathToAppend, java.util.List<io.restassured.specification.Argument> arguments)- Specified by:
appendRootPathin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
appendRoot
public io.restassured.response.ValidatableResponse appendRoot(java.lang.String pathToAppend, java.util.List<io.restassured.specification.Argument> arguments)- Specified by:
appendRootin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
detachRootPath
public io.restassured.response.ValidatableResponse detachRootPath(java.lang.String pathToDetach)- Specified by:
detachRootPathin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
detachRoot
public io.restassured.response.ValidatableResponse detachRoot(java.lang.String pathToDetach)- Specified by:
detachRootin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
contentType
public io.restassured.response.ValidatableResponse contentType(io.restassured.http.ContentType contentType)- Specified by:
contentTypein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
contentType
public io.restassured.response.ValidatableResponse contentType(java.lang.String contentType)- Specified by:
contentTypein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
contentType
public io.restassured.response.ValidatableResponse contentType(org.hamcrest.Matcher<? super java.lang.String> contentType)- Specified by:
contentTypein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
body
public io.restassured.response.ValidatableResponse body(org.hamcrest.Matcher<?> matcher, org.hamcrest.Matcher<?>... additionalMatchers)- Specified by:
bodyin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
body
public io.restassured.response.ValidatableResponse body(java.lang.String path, java.util.List<io.restassured.specification.Argument> arguments, io.restassured.matcher.ResponseAwareMatcher<io.restassured.response.Response> responseAwareMatcher)- Specified by:
bodyin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
body
public io.restassured.response.ValidatableResponse body(java.lang.String path, io.restassured.matcher.ResponseAwareMatcher<io.restassured.response.Response> responseAwareMatcher)- Specified by:
bodyin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
body
public io.restassured.response.ValidatableResponse body(java.lang.String path, org.hamcrest.Matcher<?> matcher, java.lang.Object... additionalKeyMatcherPairs)- Specified by:
bodyin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
and
public io.restassured.response.ValidatableResponse and()- Specified by:
andin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
using
public io.restassured.response.ValidatableResponse using()- Specified by:
usingin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
assertThat
public io.restassured.response.ValidatableResponse assertThat()- Specified by:
assertThatin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
spec
public io.restassured.response.ValidatableResponse spec(io.restassured.specification.ResponseSpecification responseSpecificationToMerge)- Specified by:
specin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
parser
public io.restassured.response.ValidatableResponse parser(java.lang.String contentType, io.restassured.parsing.Parser parser)- Specified by:
parserin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
defaultParser
public io.restassured.response.ValidatableResponse defaultParser(io.restassured.parsing.Parser parser)- Specified by:
defaultParserin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
extract
public io.restassured.response.ExtractableResponse<io.restassured.response.Response> extract()- Specified by:
extractin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
log
public io.restassured.response.ValidatableResponseLogSpec<io.restassured.response.ValidatableResponse,io.restassured.response.Response> log()- Specified by:
login interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
time
public io.restassured.response.ValidatableResponse time(org.hamcrest.Matcher<java.lang.Long> matcher)- Specified by:
timein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
time
public io.restassured.response.ValidatableResponse time(org.hamcrest.Matcher<java.lang.Long> matcher, java.util.concurrent.TimeUnit timeUnit)- Specified by:
timein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-