public interface MockHttpClient
| Modifier and Type | Method and Description |
|---|---|
SdkHttpRequest |
getLastRequest()
Get the last request called on the mock.
|
List<SdkHttpRequest> |
getRequests()
Get all requests called on the mock.
|
void |
reset()
Resets this mock by clearing any captured requests and wiping any stubbed responses.
|
void |
stubNextResponse(HttpExecuteResponse nextResponse)
Sets up the next HTTP response that will be returned by the mock.
|
void |
stubResponses(HttpExecuteResponse... responses)
Sets the next set of HTTP responses that will be returned by the mock.
|
void reset()
void stubNextResponse(HttpExecuteResponse nextResponse)
void stubResponses(HttpExecuteResponse... responses)
SdkHttpRequest getLastRequest()
List<SdkHttpRequest> getRequests()
Copyright © 2022. All rights reserved.