public class SimpleRequestExpectationManager extends AbstractRequestExpectationManager
RequestExpectationManager that matches requests to expectations
sequentially, i.e. in the order of declaration of expectations.
When request expectations have an expected count greater than one, only the first execution is expected to match the order of declaration. Subsequent request executions may be inserted anywhere thereafter.
AbstractRequestExpectationManager.RequestExpectationGroup| Constructor and Description |
|---|
SimpleRequestExpectationManager() |
| 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)
Subclasses must implement the actual validation of the request
matching to declared expectations.
|
createUnexpectedRequestError, expectRequest, getExpectations, getRequestDetails, getRequests, validateRequest, verifyprotected void afterExpectationsDeclared()
AbstractRequestExpectationManagerafterExpectationsDeclared in class AbstractRequestExpectationManagerpublic ClientHttpResponse validateRequestInternal(ClientHttpRequest request) throws java.io.IOException
AbstractRequestExpectationManagervalidateRequestInternal in class AbstractRequestExpectationManagerjava.io.IOExceptionpublic void reset()
RequestExpectationManagerThis is a delegate for MockRestServiceServer.reset().
reset in interface RequestExpectationManagerreset in class AbstractRequestExpectationManagerMockRestServiceServer.reset()