public class HttpsTestTarget
extends HttpTestTarget
Test target for providers using HTTPS.
public static au.com.dius.pact.provider.junit5.HttpsTestTarget.Companion Companion
@JvmOverloads
public HttpsTestTarget(@NotNull
java.lang.String host,
int port,
@NotNull
java.lang.String path,
boolean insecure,
@NotNull
kotlin.jvm.functions.Function0<? extends au.com.dius.pact.provider.IHttpClientFactory> httpClientFactory)
Test target for providers using HTTPS.
insecure - Supports using certs that will not be verified. You need this enabled if you are using self-signedor untrusted certificates. Defaults to false.@JvmOverloads
public HttpsTestTarget(@NotNull
java.lang.String host,
int port,
@NotNull
java.lang.String path,
boolean insecure)
Test target for providers using HTTPS.
insecure - Supports using certs that will not be verified. You need this enabled if you are using self-signedor untrusted certificates. Defaults to false.@JvmOverloads
public HttpsTestTarget(@NotNull
java.lang.String host,
int port,
@NotNull
java.lang.String path)
Test target for providers using HTTPS.
@JvmOverloads
public HttpsTestTarget(@NotNull
java.lang.String host,
int port)
Test target for providers using HTTPS.
@JvmOverloads
public HttpsTestTarget(@NotNull
java.lang.String host)
Test target for providers using HTTPS.
@JvmOverloads public HttpsTestTarget()
Test target for providers using HTTPS.
@NotNull
public au.com.dius.pact.provider.ProviderInfo getProviderInfo(@NotNull
java.lang.String serviceName,
@Nullable
au.com.dius.pact.core.model.PactSource pactSource)
Returns information about the provider
public boolean getInsecure()
Supports using certs that will not be verified.
You need this enabled if you are using self-signedor untrusted certificates. Defaults to false.
@JvmStatic @JvmOverloads @NotNull public static HttpsTestTarget fromUrl(@NotNull java.net.URL url, boolean insecure)
Creates a HttpsTestTarget from a URL. If the URL does not contain a port, 443 will be used.
insecure - Supports using certs that will not be verified. You need this enabled if you are using self-signedor untrusted certificates. Defaults to false.@JvmStatic @JvmOverloads @NotNull public static HttpsTestTarget fromUrl(@NotNull java.net.URL url)
Creates a HttpsTestTarget from a URL. If the URL does not contain a port, 443 will be used.