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 after the phase of declaring expected requests is over.
|
void |
reset()
Reset the internal state removing all expectations and recorded requests.
|
ClientHttpResponse |
validateRequestInternal(ClientHttpRequest request)
Subclasses must implement the actual validation of the request
matching it to a declared expectation.
|
createUnexpectedRequestError, expectRequest, getExpectations, getRequestDetails, getRequests, validateRequest, verify
protected void afterExpectationsDeclared()
AbstractRequestExpectationManager
AbstractRequestExpectationManager.validateRequest(org.springframework.http.client.ClientHttpRequest)
on the first actual request.afterExpectationsDeclared
in class AbstractRequestExpectationManager
public ClientHttpResponse validateRequestInternal(ClientHttpRequest request) throws IOException
AbstractRequestExpectationManager
validateRequestInternal
in class AbstractRequestExpectationManager
IOException
public void reset()
RequestExpectationManager
reset
in interface RequestExpectationManager
reset
in class AbstractRequestExpectationManager