Uses of Interface
org.springframework.test.web.client.RequestExpectation
Packages that use RequestExpectation Package Description org.springframework.test.web.client Contains client-side REST testing support.Uses of RequestExpectation in org.springframework.test.web.client
Classes in org.springframework.test.web.client that implement RequestExpectation Modifier and Type Class Description class
DefaultRequestExpectation
Default implementation ofRequestExpectation
that simply delegates to the request matchers and the response creator it contains.Methods in org.springframework.test.web.client that return RequestExpectation Modifier and Type Method Description RequestExpectation
AbstractRequestExpectationManager.RequestExpectationGroup. findExpectation(ClientHttpRequest request)
Return a matching expectation, ornull
if none match.protected RequestExpectation
AbstractRequestExpectationManager. matchRequest(ClientHttpRequest request)
As of 5.0.3 subclasses should implement this method instead ofAbstractRequestExpectationManager.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).protected RequestExpectation
SimpleRequestExpectationManager. matchRequest(ClientHttpRequest request)
RequestExpectation
UnorderedRequestExpectationManager. matchRequest(ClientHttpRequest request)
Methods in org.springframework.test.web.client that return types with arguments of type RequestExpectation Modifier and Type Method Description protected List<RequestExpectation>
AbstractRequestExpectationManager. getExpectations()
Return a read-only list of the expectations.Set<RequestExpectation>
AbstractRequestExpectationManager.RequestExpectationGroup. getExpectations()
Methods in org.springframework.test.web.client with parameters of type RequestExpectation Modifier and Type Method Description void
AbstractRequestExpectationManager.RequestExpectationGroup. update(RequestExpectation expectation)
Invoke this for an expectation that has been matched.Method parameters in org.springframework.test.web.client with type arguments of type RequestExpectation Modifier and Type Method Description void
AbstractRequestExpectationManager.RequestExpectationGroup. addAllExpectations(Collection<RequestExpectation> expectations)
void
AbstractRequestExpectationManager.RequestExpectationGroup. updateAll(Collection<RequestExpectation> expectations)