Uses of Interface
org.springframework.test.web.client.RequestExpectation
Packages that use RequestExpectation
-
Uses of RequestExpectation in org.springframework.test.web.client
Classes in org.springframework.test.web.client that implement RequestExpectationModifier and TypeClassDescriptionclass
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 RequestExpectationModifier 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) Methods in org.springframework.test.web.client that return types with arguments of type RequestExpectationModifier and TypeMethodDescriptionprotected List<RequestExpectation>
AbstractRequestExpectationManager.getExpectations()
Return a read-only list of the expectations.AbstractRequestExpectationManager.RequestExpectationGroup.getExpectations()
Methods in org.springframework.test.web.client with parameters of type RequestExpectationModifier and TypeMethodDescriptionvoid
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 RequestExpectationModifier and TypeMethodDescriptionvoid
AbstractRequestExpectationManager.RequestExpectationGroup.addAllExpectations
(Collection<RequestExpectation> expectations)