Modifier and Type | Method and Description |
---|---|
static Response |
RestAssured.delete()
Perform a DELETE request to the statically configured path (by default
http://localhost:8080 ). |
static Response |
RestAssured.delete(String path,
Map<String,?> pathParams)
Perform a DELETE request to a
path . |
static Response |
RestAssured.delete(String path,
Object... pathParams)
Perform a DELETE request to a
path . |
static Response |
RestAssured.delete(URI uri)
Perform a DELETE request to a
uri . |
static Response |
RestAssured.delete(URL url)
Perform a DELETE request to a
url . |
static Response |
RestAssured.get()
Perform a GET request to the statically configured path (by default
http://localhost:8080 ). |
static Response |
RestAssured.get(String path,
Map<String,?> pathParams)
Perform a GET request to a
path . |
static Response |
RestAssured.get(String path,
Object... pathParams)
Perform a GET request to a
path . |
static Response |
RestAssured.get(URI uri)
Perform a GET request to a
uri . |
static Response |
RestAssured.get(URL url)
Perform a GET request to a
url . |
static Response |
RestAssured.head()
Perform a HEAD request to the statically configured path (by default
http://localhost:8080 ). |
static Response |
RestAssured.head(String path,
Map<String,?> pathParams)
Perform a HEAD request to a
path . |
static Response |
RestAssured.head(String path,
Object... pathParams)
Perform a HEAD request to a
path . |
static Response |
RestAssured.head(URI uri)
Perform a HEAD request to a
uri . |
static Response |
RestAssured.head(URL url)
Perform a HEAD request to a
url . |
static Response |
RestAssured.options()
Perform a OPTIONS request to the statically configured path (by default
http://localhost:8080 ). |
static Response |
RestAssured.options(String path,
Map<String,?> pathParams)
Perform a OPTIONS request to a
path . |
static Response |
RestAssured.options(String path,
Object... pathParams)
Perform a OPTIONS request to a
path . |
static Response |
RestAssured.options(URI uri)
Perform a OPTIONS request to a
uri . |
static Response |
RestAssured.options(URL url)
Perform a OPTIONS request to a
url . |
static Response |
RestAssured.patch()
Perform a PATCH request to the statically configured path (by default
http://localhost:8080 ). |
static Response |
RestAssured.patch(String path,
Map<String,?> pathParams)
Perform a PATCH request to a
path . |
static Response |
RestAssured.patch(String path,
Object... pathParams)
Perform a PATCH request to a
path . |
static Response |
RestAssured.patch(URI uri)
Perform a PATCH request to a
uri . |
static Response |
RestAssured.patch(URL url)
Perform a PATCH request to a
url . |
static Response |
RestAssured.post()
Perform a POST request to the statically configured path (by default
http://localhost:8080 ). |
static Response |
RestAssured.post(String path,
Map<String,?> pathParams)
Perform a POST request to a
path . |
static Response |
RestAssured.post(String path,
Object... pathParams)
Perform a POST request to a
path . |
static Response |
RestAssured.post(URI uri)
Perform a POST request to a
uri . |
static Response |
RestAssured.post(URL url)
Perform a POST request to a
url . |
static Response |
RestAssured.put()
Perform a PUT request to the statically configured path (by default
http://localhost:8080 ). |
static Response |
RestAssured.put(String path,
Object... pathParams)
Perform a PUT request to a
path . |
static Response |
RestAssured.put(URI uri)
Perform a PUT request to a
uri . |
static Response |
RestAssured.put(URL url)
Perform a PUT request to a
url . |
static Response |
RestAssured.request(Method method)
Perform a request to the pre-configured path (by default
http://localhost:8080 ). |
static Response |
RestAssured.request(Method method,
String path,
Object... pathParams)
Perform a HTTP request to a
path . |
static Response |
RestAssured.request(Method method,
URI uri)
Perform a request to a
uri . |
static Response |
RestAssured.request(Method method,
URL url)
Perform a request to a
url . |
static Response |
RestAssured.request(String method)
Perform a custom HTTP request to the pre-configured path (by default
http://localhost:8080 ). |
static Response |
RestAssured.request(String method,
String path,
Object... pathParams)
Perform a custom HTTP request to a
path . |
static Response |
RestAssured.request(String method,
URI uri)
Perform a custom HTTP request to a
uri . |
static Response |
RestAssured.request(String method,
URL url)
Perform a custom HTTP request to a
url . |
Modifier and Type | Method and Description |
---|---|
static Object |
BodyMatcher.fallbackToResponseBodyIfContentParserIsNull(Response response,
Object contentParser) |
static Object |
StreamVerifier.newAssertion(Response response,
Object key,
ResponseParserRegistrar rpr) |
Object |
ResponseTimeMatcher.validate(Response response) |
List |
BodyMatcherGroup.validate(Response response,
Object contentParser,
RestAssuredConfig config) |
Object |
BodyMatcher.validate(Response response,
Object contentParser,
RestAssuredConfig config) |
Modifier and Type | Method and Description |
---|---|
Response |
ResponseBuilder.build()
Build the actual response
|
Modifier and Type | Method and Description |
---|---|
ResponseBuilder |
ResponseBuilder.clone(Response response)
Clone an already existing response.
|
Modifier and Type | Method and Description |
---|---|
Response |
Filter.filter(FilterableRequestSpecification requestSpec,
FilterableResponseSpecification responseSpec,
FilterContext ctx)
Filter the incoming request and response specifications and outgoing response.
|
Response |
FilterContext.next(FilterableRequestSpecification request,
FilterableResponseSpecification response)
Continue to the next filter in the chain.
|
Response |
FilterContext.send(RequestSender requestSender)
Send a request to the same request path and with the same request method as the original request.
|
Modifier and Type | Method and Description |
---|---|
Response |
CookieFilter.filter(FilterableRequestSpecification requestSpec,
FilterableResponseSpecification responseSpec,
FilterContext ctx) |
Modifier and Type | Method and Description |
---|---|
Response |
RequestLoggingFilter.filter(FilterableRequestSpecification requestSpec,
FilterableResponseSpecification responseSpec,
FilterContext ctx) |
Modifier and Type | Method and Description |
---|---|
Response |
SessionFilter.filter(FilterableRequestSpecification requestSpec,
FilterableResponseSpecification responseSpec,
FilterContext ctx) |
Modifier and Type | Method and Description |
---|---|
Response |
TimingFilter.filter(FilterableRequestSpecification requestSpec,
FilterableResponseSpecification responseSpec,
FilterContext ctx) |
Modifier and Type | Class and Description |
---|---|
class |
RestAssuredResponseImpl |
Modifier and Type | Field and Description |
---|---|
protected Response |
ValidatableResponseOptionsImpl.response |
Modifier and Type | Method and Description |
---|---|
Response |
RestAssuredResponseImpl.andReturn() |
Response |
RequestSpecificationImpl.delete() |
Response |
TestSpecificationImpl.delete() |
Response |
RequestSpecificationImpl.delete(String path,
Map pathParamsMap) |
Response |
TestSpecificationImpl.delete(String path,
Map pathParams) |
Response |
RequestSpecificationImpl.delete(String path,
Object... pathParams) |
Response |
TestSpecificationImpl.delete(String path,
Object... pathParams) |
Response |
RequestSpecificationImpl.delete(URI uri) |
Response |
TestSpecificationImpl.delete(URI uri) |
Response |
RequestSpecificationImpl.delete(URL url) |
Response |
TestSpecificationImpl.delete(URL url) |
Response |
RequestSpecificationImpl.get() |
Response |
TestSpecificationImpl.get() |
Response |
RequestSpecificationImpl.get(String path,
Map pathParamsMap) |
Response |
TestSpecificationImpl.get(String path,
Map pathParams) |
Response |
RequestSpecificationImpl.get(String path,
Object... pathParams) |
Response |
TestSpecificationImpl.get(String path,
Object... pathParams) |
Response |
RequestSpecificationImpl.get(URI uri) |
Response |
TestSpecificationImpl.get(URI uri) |
Response |
RequestSpecificationImpl.get(URL url) |
Response |
TestSpecificationImpl.get(URL url) |
Response |
RequestSpecificationImpl.head() |
Response |
TestSpecificationImpl.head() |
Response |
RequestSpecificationImpl.head(String path,
Map pathParamsMap) |
Response |
TestSpecificationImpl.head(String path,
Map pathParams) |
Response |
RequestSpecificationImpl.head(String path,
Object... pathParams) |
Response |
TestSpecificationImpl.head(String path,
Object... pathParams) |
Response |
RequestSpecificationImpl.head(URI uri) |
Response |
TestSpecificationImpl.head(URI uri) |
Response |
RequestSpecificationImpl.head(URL url) |
Response |
TestSpecificationImpl.head(URL url) |
Response |
RequestSpecificationImpl.options() |
Response |
TestSpecificationImpl.options() |
Response |
RequestSpecificationImpl.options(String path,
Map pathParamsMap) |
Response |
TestSpecificationImpl.options(String path,
Map pathParams) |
Response |
RequestSpecificationImpl.options(String path,
Object... pathParams) |
Response |
TestSpecificationImpl.options(String path,
Object... pathParams) |
Response |
RequestSpecificationImpl.options(URI uri) |
Response |
TestSpecificationImpl.options(URI uri) |
Response |
RequestSpecificationImpl.options(URL url) |
Response |
TestSpecificationImpl.options(URL url) |
Response |
ValidatableResponseImpl.originalResponse() |
Response |
RequestSpecificationImpl.patch() |
Response |
TestSpecificationImpl.patch() |
Response |
RequestSpecificationImpl.patch(String path,
Map pathParamsMap) |
Response |
TestSpecificationImpl.patch(String path,
Map pathParams) |
Response |
RequestSpecificationImpl.patch(String path,
Object... pathParams) |
Response |
TestSpecificationImpl.patch(String path,
Object... pathParams) |
Response |
RequestSpecificationImpl.patch(URI uri) |
Response |
TestSpecificationImpl.patch(URI uri) |
Response |
RequestSpecificationImpl.patch(URL url) |
Response |
TestSpecificationImpl.patch(URL url) |
Response |
RestAssuredResponseImpl.peek() |
Response |
RequestSpecificationImpl.post() |
Response |
TestSpecificationImpl.post() |
Response |
RequestSpecificationImpl.post(String path,
Map pathParamsMap) |
Response |
TestSpecificationImpl.post(String path,
Map pathParams) |
Response |
RequestSpecificationImpl.post(String path,
Object... pathParams) |
Response |
TestSpecificationImpl.post(String path,
Object... pathParams) |
Response |
RequestSpecificationImpl.post(URI uri) |
Response |
TestSpecificationImpl.post(URI uri) |
Response |
RequestSpecificationImpl.post(URL url) |
Response |
TestSpecificationImpl.post(URL url) |
Response |
RestAssuredResponseImpl.prettyPeek() |
Response |
RequestSpecificationImpl.put() |
Response |
TestSpecificationImpl.put() |
Response |
RequestSpecificationImpl.put(String path,
Map pathParamsMap) |
Response |
TestSpecificationImpl.put(String path,
Map pathParams) |
Response |
RequestSpecificationImpl.put(String path,
Object... pathParams) |
Response |
TestSpecificationImpl.put(String path,
Object... pathParams) |
Response |
RequestSpecificationImpl.put(URI uri) |
Response |
TestSpecificationImpl.put(URI uri) |
Response |
RequestSpecificationImpl.put(URL url) |
Response |
TestSpecificationImpl.put(URL url) |
Response |
RequestSpecificationImpl.request(Method method) |
Response |
TestSpecificationImpl.request(Method method) |
Response |
RequestSpecificationImpl.request(Method method,
String path,
Object... pathParams) |
Response |
TestSpecificationImpl.request(Method method,
String path,
Object... pathParams) |
Response |
RequestSpecificationImpl.request(Method method,
URI uri) |
Response |
TestSpecificationImpl.request(Method method,
URI uri) |
Response |
RequestSpecificationImpl.request(Method method,
URL url) |
Response |
TestSpecificationImpl.request(Method method,
URL url) |
Response |
RequestSpecificationImpl.request(String method) |
Response |
TestSpecificationImpl.request(String method) |
Response |
RequestSpecificationImpl.request(String method,
String path,
Object... pathParams) |
Response |
TestSpecificationImpl.request(String method,
String path,
Object... pathParams) |
Response |
RequestSpecificationImpl.request(String method,
URI uri) |
Response |
TestSpecificationImpl.request(String method,
URI uri) |
Response |
RequestSpecificationImpl.request(String method,
URL url) |
Response |
TestSpecificationImpl.request(String method,
URL url) |
Response |
RestAssuredResponseImpl.thenReturn() |
Response |
ResponseSpecificationImpl.validate(Response response) |
Modifier and Type | Method and Description |
---|---|
void |
LogRequestAndResponseOnFailListener.onFailure(RequestSpecification requestSpecification,
ResponseSpecification responseSpecification,
Response response) |
Object |
ContentParser.parse(Response response,
ResponseParserRegistrar rpr,
RestAssuredConfig config,
boolean parseAsString) |
Response |
ResponseSpecificationImpl.validate(Response response) |
Object |
ResponseSpecificationImpl.HamcrestAssertionClosure.validate(Response response) |
Constructor and Description |
---|
ResponseSpecificationImpl(String bodyRootPath,
ResponseSpecification defaultSpec,
ResponseParserRegistrar rpr,
RestAssuredConfig config,
Response response,
LogRepository logRepository) |
ValidatableResponseImpl(String contentType,
ResponseParserRegistrar rpr,
RestAssuredConfig config,
Response response,
ExtractableResponse extractableResponse,
LogRepository logRepository) |
ValidatableResponseOptionsImpl(ResponseParserRegistrar rpr,
RestAssuredConfig config,
Response response,
ExtractableResponse<R> extractableResponse,
LogRepository logRepository) |
Modifier and Type | Method and Description |
---|---|
Response |
FormAuthFilter.filter(FilterableRequestSpecification requestSpec,
FilterableResponseSpecification responseSpec,
FilterContext ctx) |
Response |
SendRequestFilter.filter(FilterableRequestSpecification requestSpecification,
FilterableResponseSpecification responseSpecification,
FilterContext context) |
Response |
FilterContextImpl.next(FilterableRequestSpecification request,
FilterableResponseSpecification response) |
Response |
FilterContextImpl.send(RequestSender requestSender) |
Modifier and Type | Method and Description |
---|---|
void |
ResponseValidationFailureListener.onFailure(RequestSpecification requestSpecification,
ResponseSpecification responseSpecification,
Response response)
Called when a failure occurs
|
Modifier and Type | Method and Description |
---|---|
static ResponseAwareMatcher<Response> |
RestAssuredMatchers.containsPath(String path)
Creates a
ResponseAwareMatcher that extracts the given path from the response and
wraps it in a Matchers.equalTo(Object) matcher. |
static ResponseAwareMatcher<Response> |
RestAssuredMatchers.endsWithPath(String path)
Creates a
ResponseAwareMatcher that extracts the given path from the response and
wraps it in a Matchers.equalTo(Object) matcher. |
static ResponseAwareMatcher<Response> |
RestAssuredMatchers.equalToPath(String path)
Creates a
ResponseAwareMatcher that extracts the given path from the response and
wraps it in a Matchers.equalTo(Object) matcher. |
static ResponseAwareMatcher<Response> |
RestAssuredMatchers.startsWithPath(String path)
Creates a
ResponseAwareMatcher that extracts the given path from the response and
wraps it in a Matchers.equalTo(Object) matcher. |
Modifier and Type | Method and Description |
---|---|
Response |
ResponseSpecification.validate(Response response)
Validates the specified response against this ResponseSpecification
|
Modifier and Type | Method and Description |
---|---|
Response |
ResponseSpecification.validate(Response response)
Validates the specified response against this ResponseSpecification
|
Copyright © 2010–2020. All rights reserved.