public interface RequestExpectationManager
MockRestServiceServer
 including its public API (create expectations + verify/reset) along with an
 extra method for verifying actual requests.
 This contract is not used directly in applications but a custom
 implementation can be
 plugged in through the MockRestServiceServer builder.
| Modifier and Type | Method and Description | 
|---|---|
| ResponseActions | expectRequest(ExpectedCount count,
             RequestMatcher requestMatcher)Set up a new request expectation. | 
| void | reset()Reset the internal state removing all expectations and recorded requests. | 
| ClientHttpResponse | validateRequest(ClientHttpRequest request)Validate the given actual request against the declared expectations. | 
| void | verify()Verify that all expectations have been met. | 
ResponseActions expectRequest(ExpectedCount count, RequestMatcher requestMatcher)
ResponseActions is
 used to add more expectations and define a response.
 This is a delegate for
 MockRestServiceServer.expect(ExpectedCount, RequestMatcher).
requestMatcher - a request expectationMockRestServiceServer.expect(RequestMatcher), 
MockRestServiceServer.expect(ExpectedCount, RequestMatcher)void verify()
This is a delegate for MockRestServiceServer.verify().
AssertionError - when some expectations were not metMockRestServiceServer.verify()void reset()
This is a delegate for MockRestServiceServer.reset().
MockRestServiceServer.reset()ClientHttpResponse validateRequest(ClientHttpRequest request) throws IOException
This is used in MockRestServiceServer against actual requests.
request - the requestAssertionError - when some expectations were not metIOException - in case of any validation errors