public class MockAsyncClientHttpRequest extends MockClientHttpRequest implements org.springframework.http.client.AsyncClientHttpRequest
MockClientHttpRequest that also implements
AsyncClientHttpRequest by wrapping the response in a
SettableListenableFuture.| Constructor and Description |
|---|
MockAsyncClientHttpRequest() |
MockAsyncClientHttpRequest(org.springframework.http.HttpMethod httpMethod,
URI uri) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.util.concurrent.ListenableFuture<org.springframework.http.client.ClientHttpResponse> |
executeAsync() |
execute, executeInternal, getMethod, getURI, isExecuted, setMethod, setResponse, setURI, toStringgetBody, getBodyAsBytes, getBodyAsString, getBodyAsString, getHeaderspublic MockAsyncClientHttpRequest()
public MockAsyncClientHttpRequest(org.springframework.http.HttpMethod httpMethod,
URI uri)
public org.springframework.util.concurrent.ListenableFuture<org.springframework.http.client.ClientHttpResponse> executeAsync()
throws IOException
executeAsync in interface org.springframework.http.client.AsyncClientHttpRequestIOException