| Package | Description |
|---|---|
| com.github.kristofa.test.http | |
| com.github.kristofa.test.http.file |
Provides implementations for storing http request/responses to disk using
LoggingHttpProxy and replaying them using
MockHttpServer. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractHttpResponseProvider
Abstract
HttpResponseProvider that contains the following functionality:
Exactly matching HttpRequests
In case of non exact match use submitted HttpRequestMatchingFilter to perform matching.
Support multiple times the same request with potentially different responses that are returned in a fixed order. |
class |
DefaultHttpResponseProvider
A
HttpResponseProvider that supports http request with all properties. |
class |
SimpleHttpResponseProvider
HttpResponseProvider that keeps expected request/responses in memory. |
| Modifier and Type | Method and Description |
|---|---|
MockAndProxyFacade.Builder |
MockAndProxyFacade.Builder.httpResponseProvider(HttpResponseProvider responseProvider)
Sets the
HttpResponseProvider that will be used for MockHttpServer. |
| Constructor and Description |
|---|
MockHttpServer(int port,
HttpResponseProvider responseProvider)
Creates a new instance.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FileHttpResponseProvider
HttpResponseProvider that is able to serve responses for requests/responses previously saved by
HttpRequestResponseFileLogger. |
Copyright © 2014. All Rights Reserved.