Package au.com.dius.pact.provider.junit5
Class HttpsTestTarget
-
- All Implemented Interfaces:
-
au.com.dius.pact.provider.junit5.TestTarget
public class HttpsTestTarget extends HttpTestTarget
Test target for providers using HTTPS.
-
-
Constructor Summary
Constructors Constructor Description HttpsTestTarget(String host, Integer port, String path, Boolean insecure, Function0<IHttpClientFactory> httpClientFactory)
HttpsTestTarget(String host, Integer port, String path, Boolean insecure)
HttpsTestTarget(String host, Integer port, String path)
HttpsTestTarget(String host, Integer port)
HttpsTestTarget(String host)
HttpsTestTarget()
-
Method Summary
Modifier and Type Method Description final Boolean
getInsecure()
Supports using certs that will not be verified. IProviderInfo
getProviderInfo(String serviceName, PactSource pactSource)
Returns information about the provider final static HttpsTestTarget
fromUrl(URL url, Boolean insecure)
Creates a HttpsTestTarget from a URL. final static HttpsTestTarget
fromUrl(URL url)
Creates a HttpsTestTarget from a URL. -
Methods inherited from class au.com.dius.pact.provider.junit5.HttpTestTarget
executeInteraction, getHost, getHttpClientFactory, getPath, getPort, getUserConfig, isHttpTarget, prepareRequest, prepareVerifier, supportsInteraction
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getInsecure
final Boolean getInsecure()
Supports using certs that will not be verified. You need this enabled if you are using self-signed or untrusted certificates. Defaults to false.
-
getProviderInfo
IProviderInfo getProviderInfo(String serviceName, PactSource pactSource)
Returns information about the provider
-
fromUrl
@JvmOverloads() final static HttpsTestTarget fromUrl(URL url, Boolean insecure)
Creates a HttpsTestTarget from a URL. If the URL does not contain a port, 443 will be used.
- Parameters:
insecure
- Supports using certs that will not be verified.
-
fromUrl
@JvmOverloads() final static HttpsTestTarget fromUrl(URL url)
Creates a HttpsTestTarget from a URL. If the URL does not contain a port, 443 will be used.
-
-
-
-