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 java.io.IOException
request
- the requestjava.lang.AssertionError
- when some expectations were not metjava.io.IOException
- in case of any validation errorsvoid verify()
java.lang.AssertionError
- when some expectations were not metvoid reset()