Uses of Interface
org.springframework.test.web.client.RequestExpectation
-
Uses of RequestExpectation in org.springframework.test.web.client
Modifier and TypeClassDescriptionclass
Default implementation ofRequestExpectation
that simply delegates to the request matchers and the response creator it contains.Modifier and TypeMethodDescriptionAbstractRequestExpectationManager.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 of#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) UnorderedRequestExpectationManager.matchRequest
(ClientHttpRequest request) Modifier and TypeMethodDescriptionprotected List<RequestExpectation>
AbstractRequestExpectationManager.getExpectations()
Return a read-only list of the expectations.AbstractRequestExpectationManager.RequestExpectationGroup.getExpectations()
Modifier and TypeMethodDescriptionvoid
AbstractRequestExpectationManager.RequestExpectationGroup.update
(RequestExpectation expectation) Invoke this for an expectation that has been matched.Modifier and TypeMethodDescriptionvoid
AbstractRequestExpectationManager.RequestExpectationGroup.addAllExpectations
(Collection<RequestExpectation> expectations)