public class HttpTarget
extends BaseTarget
Out-of-the-box implementation of Target, that run Interaction against http service and verify response
@JvmOverloads
public HttpTarget(@NotNull
java.lang.String protocol,
@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)
Out-of-the-box implementation of Target, that run Interaction against http service and verify response
@JvmOverloads
public HttpTarget(@NotNull
java.lang.String protocol,
@NotNull
java.lang.String host,
int port,
@NotNull
java.lang.String path,
boolean insecure)
Out-of-the-box implementation of Target, that run Interaction against http service and verify response
@JvmOverloads
public HttpTarget(@NotNull
java.lang.String protocol,
@NotNull
java.lang.String host,
int port,
@NotNull
java.lang.String path)
Out-of-the-box implementation of Target, that run Interaction against http service and verify response
@JvmOverloads
public HttpTarget(@NotNull
java.lang.String protocol,
@NotNull
java.lang.String host,
int port)
Out-of-the-box implementation of Target, that run Interaction against http service and verify response
@JvmOverloads
public HttpTarget(@NotNull
java.lang.String protocol,
@NotNull
java.lang.String host)
Out-of-the-box implementation of Target, that run Interaction against http service and verify response
@JvmOverloads
public HttpTarget(@NotNull
java.lang.String protocol)
Out-of-the-box implementation of Target, that run Interaction against http service and verify response
@JvmOverloads public HttpTarget()
Out-of-the-box implementation of Target, that run Interaction against http service and verify response
@JvmOverloads
public HttpTarget(@NotNull
java.lang.String host,
int port)
port - port of tested service@JvmOverloads public HttpTarget(int port)
port - port of tested service@JvmOverloads
public HttpTarget(@NotNull
java.net.URL url,
boolean insecure)
url - url of the tested serviceinsecure - true if certificates should be ignored@JvmOverloads
public HttpTarget(@NotNull
java.net.URL url)
url - url of the tested servicepublic void testInteraction(@NotNull
java.lang.String consumerName,
@NotNull
au.com.dius.pact.core.model.Interaction interaction,
@NotNull
au.com.dius.pact.core.model.PactSource source,
@NotNull
java.util.Map<java.lang.String,? extends java.lang.Object> context)
{@inheritDoc}
@NotNull
protected au.com.dius.pact.provider.IProviderVerifier setupVerifier(@NotNull
au.com.dius.pact.core.model.Interaction interaction,
@NotNull
au.com.dius.pact.provider.IProviderInfo provider,
@NotNull
au.com.dius.pact.provider.IConsumerInfo consumer,
@Nullable
au.com.dius.pact.core.model.PactSource pactSource)
@NotNull
protected au.com.dius.pact.provider.ProviderInfo getProviderInfo(@NotNull
au.com.dius.pact.core.model.PactSource source)
@NotNull public java.lang.String getProtocol()
@NotNull public java.lang.String getHost()
public int getPort()
@NotNull public java.lang.String getPath()
public boolean getInsecure()
@NotNull public kotlin.jvm.functions.Function0<au.com.dius.pact.provider.IHttpClientFactory> getHttpClientFactory()