Package | Description |
---|---|
org.springframework.test.web.client |
Contains client-side REST testing support.
|
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 |
---|---|
RequestExpectation |
AbstractRequestExpectationManager.RequestExpectationGroup.findExpectation(ClientHttpRequest request)
Return a matching expectation, or
null if none match. |
protected RequestExpectation |
SimpleRequestExpectationManager.matchRequest(ClientHttpRequest request) |
protected RequestExpectation |
AbstractRequestExpectationManager.matchRequest(ClientHttpRequest request)
As of 5.0.3 subclasses should implement this method instead of
AbstractRequestExpectationManager.validateRequestInternal(ClientHttpRequest) in order to match the
request to an expectation, leaving the call to create the response as a separate step
(to be invoked by this class). |
RequestExpectation |
UnorderedRequestExpectationManager.matchRequest(ClientHttpRequest request) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<RequestExpectation> |
AbstractRequestExpectationManager.getExpectations()
Return a read-only list of the expectations.
|
java.util.Set<RequestExpectation> |
AbstractRequestExpectationManager.RequestExpectationGroup.getExpectations() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractRequestExpectationManager.RequestExpectationGroup.update(RequestExpectation expectation)
Invoke this for an expectation that has been matched.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractRequestExpectationManager.RequestExpectationGroup.addAllExpectations(java.util.Collection<RequestExpectation> expectations) |
void |
AbstractRequestExpectationManager.RequestExpectationGroup.updateAll(java.util.Collection<RequestExpectation> expectations)
|