| Package | Description |
|---|---|
| org.springframework.test.web.client |
Contains client-side REST testing support.
|
| org.springframework.test.web.client.response |
Contains built-in
ResponseCreator
implementations. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
RequestExpectation
An extension of
ResponseActions that also implements
RequestMatcher and ResponseCreator |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultRequestExpectation
Default implementation of
RequestExpectation that simply delegates
to the request matchers and the response creator it contains. |
| Modifier and Type | Method and Description |
|---|---|
protected ResponseCreator |
DefaultRequestExpectation.getResponseCreator() |
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultRequestExpectation.andRespond(ResponseCreator responseCreator) |
void |
ResponseActions.andRespond(ResponseCreator responseCreator)
Define the response.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultResponseCreator
A
ResponseCreator with builder-style methods for adding response details. |
| Modifier and Type | Method and Description |
|---|---|
static ResponseCreator |
MockRestResponseCreators.withException(IOException ex)
ResponseCreator with an internal application IOException. |