public abstract class SdkHttpClientTestSuite extends Object
SdkHttpClient.
This is used by an HTTP plugin implementation by extending this class and implementing the abstract methods to provide this
suite with a testable HTTP client implementation.| Modifier and Type | Class and Description |
|---|---|
protected static class |
SdkHttpClientTestSuite.SdkHttpClientOptions
The options that should be considered when creating the client via
createSdkHttpClient(SdkHttpClientOptions). |
| Modifier and Type | Field and Description |
|---|---|
com.github.tomakehurst.wiremock.junit.WireMockRule |
mockServer |
| Constructor and Description |
|---|
SdkHttpClientTestSuite() |
| Modifier and Type | Method and Description |
|---|---|
protected SdkHttpClient |
createSdkHttpClient()
createSdkHttpClient(SdkHttpClientOptions) with default options. |
protected abstract SdkHttpClient |
createSdkHttpClient(SdkHttpClientTestSuite.SdkHttpClientOptions options)
Implemented by a child class to create an HTTP client to validate based on the provided options.
|
void |
supportsResponseCode200() |
void |
supportsResponseCode202() |
void |
supportsResponseCode301() |
void |
supportsResponseCode302() |
void |
supportsResponseCode403() |
void |
supportsResponseCode500() |
void |
validatesHttpsCertificateIssuer() |
public void validatesHttpsCertificateIssuer()
throws Exception
Exceptionprotected final SdkHttpClient createSdkHttpClient()
createSdkHttpClient(SdkHttpClientOptions) with default options.protected abstract SdkHttpClient createSdkHttpClient(SdkHttpClientTestSuite.SdkHttpClientOptions options)
Copyright © 2018. All rights reserved.