|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HttpResponseProvider
Provides responses for given http requests. Abstracts where the responses come from.
Used with MockHttpServer.
MockHttpServer| Method Summary | |
|---|---|
HttpResponse |
getResponse(HttpRequest request)
Gets expected response for given request. |
void |
verify()
Should be executed when all requests have been submitted. |
| Method Detail |
|---|
HttpResponse getResponse(HttpRequest request)
request - HttpRequest.
null in case we don't know given request.
void verify()
throws UnsatisfiedExpectationException
UnsatisfiedExpectationException - In case expectation were not as expected. See
UnsatisfiedExpectationException.getMissingHttpRequests() and
UnsatisfiedExpectationException.getUnexpectedHttpRequests() to get missing and unexpected
requests.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||