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.
|
void |
reset()
Reset the internal state removing all expectations and recorded requests.
|
ClientHttpResponse |
validateRequestInternal(ClientHttpRequest request)
Sub-classes must implement the actual validation of the request
matching to declared expectations.
|
createUnexpectedRequestError, expectRequest, getExpectations, getRequestDetails, getRequests, validateRequest, verify
protected void afterExpectationsDeclared()
AbstractRequestExpectationManager
afterExpectationsDeclared
in class AbstractRequestExpectationManager
public ClientHttpResponse validateRequestInternal(ClientHttpRequest request) throws java.io.IOException
AbstractRequestExpectationManager
validateRequestInternal
in class AbstractRequestExpectationManager
java.io.IOException
public void reset()
RequestExpectationManager
reset
in interface RequestExpectationManager
reset
in class AbstractRequestExpectationManager