public class UnorderedRequestExpectationManager extends AbstractRequestExpectationManager
RequestExpectationManager that matches requests to expectations
regardless of the order of declaration of expected requests.AbstractRequestExpectationManager.RequestExpectationGroup| Constructor and Description |
|---|
UnorderedRequestExpectationManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterExpectationsDeclared()
Invoked at the time of the first actual request, which effectively means
the expectations declaration phase is over.
|
RequestExpectation |
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). |
void |
reset()
Reset the internal state removing all expectations and recorded requests.
|
createUnexpectedRequestError, expectRequest, getExpectations, getRequestDetails, getRequests, validateRequest, validateRequestInternal, verifyprotected void afterExpectationsDeclared()
AbstractRequestExpectationManagerafterExpectationsDeclared in class AbstractRequestExpectationManagerpublic RequestExpectation matchRequest(ClientHttpRequest request) throws IOException
AbstractRequestExpectationManagerAbstractRequestExpectationManager.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).matchRequest in class AbstractRequestExpectationManagerrequest - the current requestRequestExpectation.incrementAndValidate().IOExceptionpublic void reset()
RequestExpectationManagerThis is a delegate for MockRestServiceServer.reset().
reset in interface RequestExpectationManagerreset in class AbstractRequestExpectationManagerMockRestServiceServer.reset()