public interface RequestExpectationManager
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.requestMatcher
- a request expectationClientHttpResponse validateRequest(ClientHttpRequest request) throws IOException
request
- the requestAssertionError
- when some expectations were not metIOException
void verify()
AssertionError
- when some expectations were not metvoid reset()