Package io.restassured.internal
Class ValidatableResponseStub
java.lang.Object
io.restassured.internal.ValidatableResponseStub
- All Implemented Interfaces:
io.restassured.response.ValidatableResponse,io.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
public class ValidatableResponseStub
extends Object
implements io.restassured.response.ValidatableResponse
Created by john on 23/07/2015.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.restassured.response.ValidatableResponseand()io.restassured.response.ValidatableResponseappendRoot(String pathToAppend) io.restassured.response.ValidatableResponseappendRoot(String pathToAppend, List<io.restassured.specification.Argument> arguments) io.restassured.response.ValidatableResponseappendRootPath(String pathToAppend) io.restassured.response.ValidatableResponseappendRootPath(String pathToAppend, List<io.restassured.specification.Argument> arguments) io.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponsebody(String path, io.restassured.matcher.ResponseAwareMatcher<io.restassured.response.Response> responseAwareMatcher) io.restassured.response.ValidatableResponsebody(String path, List<io.restassured.specification.Argument> arguments, io.restassured.matcher.ResponseAwareMatcher<io.restassured.response.Response> responseAwareMatcher) io.restassured.response.ValidatableResponsebody(String path, List<io.restassured.specification.Argument> arguments, org.hamcrest.Matcher matcher, Object... additionalKeyMatcherPairs) io.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponsebody(List<io.restassured.specification.Argument> arguments, io.restassured.matcher.ResponseAwareMatcher<io.restassured.response.Response> responseAwareMatcher) io.restassured.response.ValidatableResponsebody(List<io.restassured.specification.Argument> arguments, org.hamcrest.Matcher matcher, 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(String contentType) io.restassured.response.ValidatableResponsecontentType(org.hamcrest.Matcher<? super String> contentType) io.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponsecookies(String firstExpectedCookieName, Object firstExpectedCookieValue, Object... expectedCookieNameValuePairs) io.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponsedefaultParser(io.restassured.parsing.Parser parser) io.restassured.response.ValidatableResponsedetachRoot(String pathToDetach) io.restassured.response.ValidatableResponsedetachRootPath(String pathToDetach) io.restassured.response.ExtractableResponse<io.restassured.response.Response> extract()io.restassured.response.ValidatableResponseheader(String s, io.restassured.matcher.ResponseAwareMatcher<io.restassured.response.Response> responseAwareMatcher) io.restassured.response.ValidatableResponse<V> io.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponseLogSpec<io.restassured.response.ValidatableResponse, io.restassured.response.Response> log()io.restassured.response.ValidatableResponsenoRoot()io.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponsespec(io.restassured.specification.ResponseSpecification responseSpecificationToMerge) io.restassured.response.ValidatableResponsestatusCode(int expectedStatusCode) io.restassured.response.ValidatableResponsestatusCode(org.hamcrest.Matcher<? super Integer> expectedStatusCode) io.restassured.response.ValidatableResponsestatusLine(String expectedStatusLine) io.restassured.response.ValidatableResponsestatusLine(org.hamcrest.Matcher<? super String> expectedStatusLine) io.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponseio.restassured.response.ValidatableResponseusing()
-
Constructor Details
-
ValidatableResponseStub
public ValidatableResponseStub()
-
-
Method Details
-
body
public io.restassured.response.ValidatableResponse body(String path, List<io.restassured.specification.Argument> arguments, org.hamcrest.Matcher matcher, Object... additionalKeyMatcherPairs) - Specified by:
bodyin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
body
public io.restassured.response.ValidatableResponse body(List<io.restassured.specification.Argument> arguments, org.hamcrest.Matcher matcher, Object... additionalKeyMatcherPairs) - Specified by:
bodyin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
body
public io.restassured.response.ValidatableResponse body(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 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 String> expectedStatusLine) - Specified by:
statusLinein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
statusLine
- Specified by:
statusLinein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
headers
- Specified by:
headersin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
headers
public io.restassured.response.ValidatableResponse headers(String firstExpectedHeaderName, Object firstExpectedHeaderValue, Object... expectedHeaders) - Specified by:
headersin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
header
public io.restassured.response.ValidatableResponse header(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(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(String s, Function<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
- Specified by:
headerin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
cookies
- Specified by:
cookiesin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
cookie
- Specified by:
cookiein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
cookies
public io.restassured.response.ValidatableResponse cookies(String firstExpectedCookieName, Object firstExpectedCookieValue, Object... expectedCookieNameValuePairs) - Specified by:
cookiesin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
cookie
public io.restassured.response.ValidatableResponse cookie(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(String cookieName, io.restassured.matcher.DetailedCookieMatcher detailedCookieMatcher) - Specified by:
cookiein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
cookie
- Specified by:
cookiein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
rootPath
- Specified by:
rootPathin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
rootPath
public io.restassured.response.ValidatableResponse rootPath(String rootPath, 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(String rootPath, List<io.restassured.specification.Argument> arguments) - Specified by:
rootin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
root
- 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
- Specified by:
appendRootPathin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
appendRoot
- Specified by:
appendRootin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
appendRootPath
public io.restassured.response.ValidatableResponse appendRootPath(String pathToAppend, 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(String pathToAppend, List<io.restassured.specification.Argument> arguments) - Specified by:
appendRootin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
detachRootPath
- Specified by:
detachRootPathin interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
detachRoot
- 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
- 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 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(String path, 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(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(String path, org.hamcrest.Matcher<?> matcher, 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(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
- 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<Long> matcher, TimeUnit timeUnit) - Specified by:
timein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
onFailMessage
- Specified by:
onFailMessagein interfaceio.restassured.response.ValidatableResponseOptions<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-