public class PactBrokerLoader implements OverrideablePactLoader
Out-of-the-box implementation of {@link PactLoader} that downloads pacts from Pact broker
public static au.com.dius.pact.provider.junitsupport.loader.PactBrokerLoader.Companion Companion
public PactBrokerLoader(@Nullable
java.lang.String pactBrokerHost,
@Nullable
java.lang.String pactBrokerPort,
@Nullable
java.lang.String pactBrokerScheme,
@Nullable
java.util.List<java.lang.String> pactBrokerTags,
@NotNull
java.util.List<au.com.dius.pact.provider.junitsupport.loader.VersionSelector> pactBrokerConsumerVersionSelectors,
@NotNull
java.util.List<java.lang.String> pactBrokerConsumers,
boolean failIfNoPactsFound,
@Nullable
PactBrokerAuth authentication,
@Nullable
kotlin.reflect.KClass<? extends au.com.dius.pact.core.support.expressions.ValueResolver> valueResolverClass,
@Nullable
au.com.dius.pact.core.support.expressions.ValueResolver valueResolver,
@NotNull
java.lang.String enablePendingPacts,
@NotNull
java.util.List<java.lang.String> providerTags,
@NotNull
java.lang.String providerBranch,
@NotNull
java.lang.String includeWipPactsSince,
@Nullable
java.lang.String pactBrokerUrl,
@NotNull
java.lang.String enableInsecureTls)
Out-of-the-box implementation of {@link PactLoader} that downloads pacts from Pact broker
public PactBrokerLoader(@NotNull
PactBroker pactBroker)
@NotNull public au.com.dius.pact.core.model.PactReader getPactReader()
public void setPactReader(@NotNull
au.com.dius.pact.core.model.PactReader p)
@NotNull public java.lang.String description()
public void overridePactUrl(@NotNull
java.lang.String pactUrl,
@NotNull
java.lang.String consumer)
@NotNull
public java.util.List<au.com.dius.pact.core.model.Pact> load(@NotNull
java.lang.String providerName)
@NotNull
public java.util.List<au.com.dius.pact.core.pactbroker.ConsumerVersionSelectors> buildConsumerVersionSelectors(@NotNull
au.com.dius.pact.core.support.expressions.ValueResolver resolver)
public boolean shouldFallBackToTags(@NotNull
java.util.List<java.lang.String> tags,
@NotNull
java.util.List<au.com.dius.pact.provider.junitsupport.loader.VersionSelector> selectors,
@NotNull
au.com.dius.pact.core.support.expressions.ValueResolver resolver)
@Nullable public au.com.dius.pact.core.model.PactSource getPactSource()
public void setValueResolver(@NotNull
au.com.dius.pact.core.support.expressions.ValueResolver valueResolver)
@NotNull
public org.apache.http.client.utils.URIBuilder brokerUrl(@NotNull
au.com.dius.pact.core.support.expressions.ValueResolver resolver)
@NotNull
public au.com.dius.pact.core.model.PactBrokerSource<au.com.dius.pact.core.model.Interaction> getPactBrokerSource(@NotNull
au.com.dius.pact.core.support.expressions.ValueResolver resolver)
@NotNull
public au.com.dius.pact.core.pactbroker.IPactBrokerClient newPactBrokerClient(@NotNull
java.net.URI url,
@NotNull
au.com.dius.pact.core.support.expressions.ValueResolver resolver)
public void initLoader(@Nullable
java.lang.Class<?> testClass,
@Nullable
java.lang.Object testInstance)
@Nullable public java.lang.String getPactBrokerHost()
@Nullable public java.lang.String getPactBrokerPort()
@Nullable public java.lang.String getPactBrokerScheme()
@Nullable public java.util.List<java.lang.String> getPactBrokerTags()
@NotNull public java.util.List<au.com.dius.pact.provider.junitsupport.loader.VersionSelector> getPactBrokerConsumerVersionSelectors()
@NotNull public java.util.List<java.lang.String> getPactBrokerConsumers()
public boolean getFailIfNoPactsFound()
public void setFailIfNoPactsFound(boolean p)
@Nullable public PactBrokerAuth getAuthentication()
public void setAuthentication(@Nullable
PactBrokerAuth p)
@Nullable public kotlin.reflect.KClass<? extends au.com.dius.pact.core.support.expressions.ValueResolver> getValueResolverClass()
public void setValueResolverClass(@Nullable
kotlin.reflect.KClass<? extends au.com.dius.pact.core.support.expressions.ValueResolver> p)
@NotNull public java.lang.String getEnablePendingPacts()
@NotNull public java.util.List<java.lang.String> getProviderTags()
@NotNull public java.lang.String getProviderBranch()
@NotNull public java.lang.String getIncludeWipPactsSince()
@Nullable public java.lang.String getPactBrokerUrl()
@NotNull public java.lang.String getEnableInsecureTls()
@JvmStatic
@NotNull
public static java.util.List<au.com.dius.pact.core.pactbroker.ConsumerVersionSelectors> invokeSelectorsMethod(@Nullable
java.lang.Object testInstance,
@Nullable
java.lang.Class<?> testClass,
@NotNull
java.lang.reflect.Method method)
@JvmStatic
@Nullable
public static kotlin.Pair<java.lang.reflect.Method,kotlin.reflect.KClass> testClassHasSelectorsMethod(@Nullable
java.lang.Class<?> testClass)