Class HttpsTestTarget

  • All Implemented Interfaces:
    au.com.dius.pact.provider.junit5.TestTarget

    
    public class HttpsTestTarget
    extends HttpTestTarget
                        

    Test target for providers using HTTPS.

    • Constructor Detail

      • HttpsTestTarget

        HttpsTestTarget(String host, Integer port, String path, Boolean insecure, Function0<IHttpClientFactory> httpClientFactory)
      • HttpsTestTarget

        HttpsTestTarget(String host)
      • HttpsTestTarget

        HttpsTestTarget()
    • 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.