public PactBroker
Used to point au.com.dius.pact.provider.junit.PactRunner to source of pacts for contract tests Default values can be set by setting the `pactbroker.*` system properties
| Modifier and Type | Method and Description |
|---|---|
PactBrokerAuth |
authentication()
Authentication to use with the pact broker, by default no authentication is used
|
boolean |
failIfNoPactsFound()
If the test should fail if no pacts are found for the provider, default is true
|
java.lang.String |
host() |
java.lang.String |
port() |
java.lang.String |
protocol()
HTTP protocol, defaults to http
|
java.lang.String[] |
tags()
Tags to use to fetch pacts for, defaults to `latest` If you set the tags through the `pactbroker.tag` system property, separate the tags by commas
|
java.lang.Class<? extends au.com.dius.pact.provider.junit.sysprops.ValueResolver> |
valueResolver()
Override the default value resolver for resolving the values in the expressions
|
java.lang.String host()
java.lang.String port()
java.lang.String protocol()
HTTP protocol, defaults to http
java.lang.String[] tags()
Tags to use to fetch pacts for, defaults to `latest` If you set the tags through the `pactbroker.tag` system property, separate the tags by commas
boolean failIfNoPactsFound()
If the test should fail if no pacts are found for the provider, default is true
PactBrokerAuth authentication()
Authentication to use with the pact broker, by default no authentication is used
java.lang.Class<? extends au.com.dius.pact.provider.junit.sysprops.ValueResolver> valueResolver()
Override the default value resolver for resolving the values in the expressions