Skip navigation links
A B C D E F G H I J L M N P R S T U V W 

A

addResultCallback() - Method in class au.com.dius.pact.provider.junit.target.BaseTarget
 
addResultCallback() - Method in interface au.com.dius.pact.provider.junit.target.Target
Add a callback to receive the test interaction result
AmqpTarget - Class in au.com.dius.pact.provider.junit.target
Out-of-the-box implementation of interface Target, that run Interaction against message pact and verify response By default it will scan all packages for annotated methods, but a list of packages can be provided to reduce the performance cost
AmqpTarget(packagesToScan) - Constructor for class au.com.dius.pact.provider.junit.target.AmqpTarget
Out-of-the-box implementation of interface Target, that run Interaction against message pact and verify response By default it will scan all packages for annotated methods, but a list of packages can be provided to reduce the performance cost
AmqpTarget() - Constructor for class au.com.dius.pact.provider.junit.target.AmqpTarget
Out-of-the-box implementation of interface Target, that run Interaction against message pact and verify response By default it will scan all packages for annotated methods, but a list of packages can be provided to reduce the performance cost
au.com.dius.pact.provider.junit - package au.com.dius.pact.provider.junit
 
au.com.dius.pact.provider.junit.loader - package au.com.dius.pact.provider.junit.loader
 
au.com.dius.pact.provider.junit.sysprops - package au.com.dius.pact.provider.junit.sysprops
 
au.com.dius.pact.provider.junit.target - package au.com.dius.pact.provider.junit.target
 
authentication() - Method in interface au.com.dius.pact.provider.junit.loader.PactBroker
Authentication to use with the pact broker, by default no authentication is used

B

BaseTarget - Class in au.com.dius.pact.provider.junit.target
Out-of-the-box implementation of Target, that run Interaction against message pact and verify response

C

Companion - Static variable in class au.com.dius.pact.provider.junit.PactRunner
 
Consumer - Interface in au.com.dius.pact.provider.junit
Used to pass consumer name to PactRunner
createTest() - Method in class au.com.dius.pact.provider.junit.InteractionRunner
 

D

describeChild() - Method in class au.com.dius.pact.provider.junit.InteractionRunner
 
describeChild(child) - Method in class au.com.dius.pact.provider.junit.PactRunner
 

E

END_EXPRESSION - Static variable in class au.com.dius.pact.provider.junit.sysprops.PactRunnerExpressionParser
 
evaluate() - Method in class au.com.dius.pact.provider.junit.RunStateChanges
 
exceptionMessage(err, prefixLength) - Static method in class au.com.dius.pact.provider.junit.JUnitProviderTestSupport
 

F

failIfNoPactsFound() - Method in interface au.com.dius.pact.provider.junit.loader.PactBroker
If the test should fail if no pacts are found for the provider, default is true
FilteredPactRunner<I extends Interaction> - Class in au.com.dius.pact.provider.junit
Deprecated. 
FilteredPactRunner(clazz) - Constructor for class au.com.dius.pact.provider.junit.FilteredPactRunner
Deprecated.
Pact Runner that uses annotations to filter the interactions that are executed
filterPacts(pacts) - Method in class au.com.dius.pact.provider.junit.FilteredPactRunner
Deprecated.
 
filterPacts(pacts) - Method in class au.com.dius.pact.provider.junit.MessagePactRunner
 
filterPacts(pacts) - Method in class au.com.dius.pact.provider.junit.PactRunner
 
filterPacts(pacts) - Method in class au.com.dius.pact.provider.junit.RestPactRunner
 
filterPactsByAnnotations(pacts, testClass) - Method in class au.com.dius.pact.provider.junit.JUnitProviderTestSupport
 

G

generateErrorStringFromMismatches(mismatches) - Static method in class au.com.dius.pact.provider.junit.JUnitProviderTestSupport
 
getAssertionError() - Method in class au.com.dius.pact.provider.junit.target.BaseTarget
 
getChildren() - Method in class au.com.dius.pact.provider.junit.PactRunner
 
getDefaultValue() - Method in class au.com.dius.pact.provider.junit.sysprops.SystemPropertyResolver.PropertyValueTuple
 
getDescription() - Method in class au.com.dius.pact.provider.junit.InteractionRunner
 
getPackagesToScan() - Method in class au.com.dius.pact.provider.junit.target.AmqpTarget
List of JVM packages
getPactSource() - Method in class au.com.dius.pact.provider.junit.loader.PactBrokerLoader
 
getPactSource() - Method in class au.com.dius.pact.provider.junit.loader.PactFolderLoader
 
getPactSource() - Method in interface au.com.dius.pact.provider.junit.loader.PactLoader
Returns the source object that the pacts where loaded from
getPactSource() - Method in class au.com.dius.pact.provider.junit.loader.PactUrlLoader
 
getPactSource(clazz) - Method in class au.com.dius.pact.provider.junit.PactRunner
 
getPropertyName() - Method in class au.com.dius.pact.provider.junit.sysprops.SystemPropertyResolver.PropertyValueTuple
 
getProviderInfo(source) - Method in class au.com.dius.pact.provider.junit.target.AmqpTarget
 
getProviderInfo() - Method in class au.com.dius.pact.provider.junit.target.BaseTarget
 
getProviderInfo() - Method in class au.com.dius.pact.provider.junit.target.HttpTarget
 
getValueResolver() - Method in class au.com.dius.pact.provider.junit.target.BaseTarget
 

H

hasOneConstructor() - Method in class au.com.dius.pact.provider.junit.InteractionRunner
 
host() - Method in interface au.com.dius.pact.provider.junit.loader.PactBroker
 
HttpTarget - Class in au.com.dius.pact.provider.junit.target
Out-of-the-box implementation of Target, that run Interaction against http service and verify response
HttpTarget() - Constructor for class au.com.dius.pact.provider.junit.target.HttpTarget
 
HttpTarget() - Constructor for class au.com.dius.pact.provider.junit.target.HttpTarget
Host of tested service is assumed as "localhost"
HttpTarget() - Constructor for class au.com.dius.pact.provider.junit.target.HttpTarget
 
HttpTarget() - Constructor for class au.com.dius.pact.provider.junit.target.HttpTarget
 
HttpTarget() - Constructor for class au.com.dius.pact.provider.junit.target.HttpTarget
 
HttpTarget() - Constructor for class au.com.dius.pact.provider.junit.target.HttpTarget
 
HttpTarget() - Constructor for class au.com.dius.pact.provider.junit.target.HttpTarget
 

I

IgnoreNoPactsToVerify - Interface in au.com.dius.pact.provider.junit
With this annotation set on the test class, the pact runner will ignore the fact that there are no pacts to verify.
INSTANCE - Static variable in class au.com.dius.pact.provider.junit.JUnitProviderTestSupport
 
interactionBlock() - Method in class au.com.dius.pact.provider.junit.InteractionRunner
 
InteractionRunner - Class in au.com.dius.pact.provider.junit
Internal class to support pact test running Developed with org.junit.runners.BlockJUnit4ClassRunner in mind
InteractionRunner() - Constructor for class au.com.dius.pact.provider.junit.InteractionRunner
 
invoke() - Method in class au.com.dius.pact.provider.junit.sysprops.SystemPropertyResolver.PropertyValueTuple
 
isFailIfNoPactsFound() - Method in class au.com.dius.pact.provider.junit.loader.PactBrokerLoader
 

J

JUnitProviderTestSupport - Class in au.com.dius.pact.provider.junit
 

L

load() - Method in class au.com.dius.pact.provider.junit.loader.PactBrokerLoader
 
load(providerName) - Method in class au.com.dius.pact.provider.junit.loader.PactFolderLoader
 
load() - Method in interface au.com.dius.pact.provider.junit.loader.PactLoader
Load pacts from appropriate source
load() - Method in class au.com.dius.pact.provider.junit.loader.PactUrlLoader
 
lookupTarget() - Method in class au.com.dius.pact.provider.junit.InteractionRunner
 

M

MessagePactRunner<I extends Interaction> - Class in au.com.dius.pact.provider.junit
Pact runner that only verifies message pacts
MessagePactRunner(clazz) - Constructor for class au.com.dius.pact.provider.junit.MessagePactRunner
Pact runner that only verifies message pacts
MissingStateChangeMethod - Exception in au.com.dius.pact.provider.junit
 
MissingStateChangeMethod() - Constructor for exception au.com.dius.pact.provider.junit.MissingStateChangeMethod
 
MissingStateChangeMethod() - Constructor for exception au.com.dius.pact.provider.junit.MissingStateChangeMethod
 
MissingStateChangeMethod() - Constructor for exception au.com.dius.pact.provider.junit.MissingStateChangeMethod
 
MissingStateChangeMethod() - Constructor for exception au.com.dius.pact.provider.junit.MissingStateChangeMethod
 
MissingStateChangeMethod() - Constructor for exception au.com.dius.pact.provider.junit.MissingStateChangeMethod
 

N

newInteractionRunner(testClass, pact, pactSource) - Method in class au.com.dius.pact.provider.junit.PactRunner
 
NoPactsFoundException - Exception in au.com.dius.pact.provider.junit.loader
 
NoPactsFoundException() - Constructor for exception au.com.dius.pact.provider.junit.loader.NoPactsFoundException
 
NoPactsFoundException() - Constructor for exception au.com.dius.pact.provider.junit.loader.NoPactsFoundException
 
NoPactsFoundException() - Constructor for exception au.com.dius.pact.provider.junit.loader.NoPactsFoundException
 
NoPactsFoundException() - Constructor for exception au.com.dius.pact.provider.junit.loader.NoPactsFoundException
 

P

PactBroker - Interface in au.com.dius.pact.provider.junit.loader
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
PactBrokerAuth - Interface in au.com.dius.pact.provider.junit.loader
Defines the authentication scheme to use with the pact broker
PactBrokerLoader - Class in au.com.dius.pact.provider.junit.loader
Out-of-the-box implementation of PactLoader that downloads pacts from Pact broker
PactBrokerLoader() - Constructor for class au.com.dius.pact.provider.junit.loader.PactBrokerLoader
 
PactBrokerLoader() - Constructor for class au.com.dius.pact.provider.junit.loader.PactBrokerLoader
 
PactBrokerLoader() - Constructor for class au.com.dius.pact.provider.junit.loader.PactBrokerLoader
 
PactFilter - Interface in au.com.dius.pact.provider.junit.loader
Annotation to filter pacts by provider state. Supports regular expressions.
PactFolder - Interface in au.com.dius.pact.provider.junit.loader
Used to point au.com.dius.pact.provider.junit.PactRunner to source of pacts for contract tests
PactFolderLoader<I extends Interaction> - Class in au.com.dius.pact.provider.junit.loader
Out-of-the-box implementation of interface PactLoader that loads pacts from either a subfolder of project resource folder or a directory
PactFolderLoader(path) - Constructor for class au.com.dius.pact.provider.junit.loader.PactFolderLoader
Out-of-the-box implementation of interface PactLoader that loads pacts from either a subfolder of project resource folder or a directory
PactFolderLoader(path) - Constructor for class au.com.dius.pact.provider.junit.loader.PactFolderLoader
 
PactFolderLoader(path) - Constructor for class au.com.dius.pact.provider.junit.loader.PactFolderLoader
Deprecated. 
PactFolderLoader(pactFolder) - Constructor for class au.com.dius.pact.provider.junit.loader.PactFolderLoader
 
PactLoader - Interface in au.com.dius.pact.provider.junit.loader
Encapsulate logic for loading pacts
PactRunner<I extends Interaction> - Class in au.com.dius.pact.provider.junit
JUnit Runner runs pacts against provider To set up name of tested provider use interface Provider annotation To point on pact's source use interface PactBroker, interface PactFolder or interface PactSource annotations
PactRunner(clazz) - Constructor for class au.com.dius.pact.provider.junit.PactRunner
JUnit Runner runs pacts against provider To set up name of tested provider use interface Provider annotation To point on pact's source use interface PactBroker, interface PactFolder or interface PactSource annotations
PactRunner.Companion - Class in au.com.dius.pact.provider.junit
 
PactRunnerExpressionParser - Class in au.com.dius.pact.provider.junit.sysprops
 
PactSource - Interface in au.com.dius.pact.provider.junit.loader
Point out which PactLoader use for pact loading
PactUrl - Interface in au.com.dius.pact.provider.junit.loader
Used to point au.com.dius.pact.provider.junit.PactRunner to source of pacts for contract tests
PactUrlLoader - Class in au.com.dius.pact.provider.junit.loader
Implementation of PactLoader that downloads pacts from given urls
PactUrlLoader() - Constructor for class au.com.dius.pact.provider.junit.loader.PactUrlLoader
 
PactUrlLoader() - Constructor for class au.com.dius.pact.provider.junit.loader.PactUrlLoader
 
parseExpression() - Static method in class au.com.dius.pact.provider.junit.sysprops.PactRunnerExpressionParser
 
parseExpression() - Static method in class au.com.dius.pact.provider.junit.sysprops.PactRunnerExpressionParser
 
parseListExpression() - Static method in class au.com.dius.pact.provider.junit.sysprops.PactRunnerExpressionParser
 
parseListExpression() - Static method in class au.com.dius.pact.provider.junit.sysprops.PactRunnerExpressionParser
 
password() - Method in interface au.com.dius.pact.provider.junit.loader.PactBrokerAuth
Password to use for authentication
port() - Method in interface au.com.dius.pact.provider.junit.loader.PactBroker
 
port - Variable in class au.com.dius.pact.provider.junit.target.HttpTarget
 
propertyDefined() - Method in class au.com.dius.pact.provider.junit.sysprops.SystemPropertyResolver
 
propertyDefined() - Method in interface au.com.dius.pact.provider.junit.sysprops.ValueResolver
 
PropertyValueTuple() - Constructor for class au.com.dius.pact.provider.junit.sysprops.SystemPropertyResolver.PropertyValueTuple
 
protocol() - Method in interface au.com.dius.pact.provider.junit.loader.PactBroker
HTTP protocol, defaults to http
Provider - Interface in au.com.dius.pact.provider.junit
Used to pass provider name to PactRunner

R

reportDir() - Method in interface au.com.dius.pact.provider.junit.VerificationReports
Directory where reports should be written
reportTestResult() - Method in class au.com.dius.pact.provider.junit.target.BaseTarget
 
reportVerificationResults() - Method in class au.com.dius.pact.provider.junit.InteractionRunner
 
resolveValue() - Method in class au.com.dius.pact.provider.junit.sysprops.SystemPropertyResolver
 
resolveValue() - Method in interface au.com.dius.pact.provider.junit.sysprops.ValueResolver
 
RestPactRunner<I extends Interaction> - Class in au.com.dius.pact.provider.junit
 
RestPactRunner(clazz) - Constructor for class au.com.dius.pact.provider.junit.RestPactRunner
 
run() - Method in class au.com.dius.pact.provider.junit.InteractionRunner
 
runChild(interaction, notifier) - Method in class au.com.dius.pact.provider.junit.PactRunner
 
RunStateChanges - Class in au.com.dius.pact.provider.junit
 
RunStateChanges() - Constructor for class au.com.dius.pact.provider.junit.RunStateChanges
 

S

scheme() - Method in interface au.com.dius.pact.provider.junit.loader.PactBrokerAuth
Authentication scheme to use. The default is basic.
setFailIfNoPactsFound() - Method in class au.com.dius.pact.provider.junit.loader.PactBrokerLoader
 
setTestClass() - Method in class au.com.dius.pact.provider.junit.target.BaseTarget
 
setTestClass() - Method in interface au.com.dius.pact.provider.junit.target.TestClassAwareTarget
 
setupInteractionRunners(testClass, pacts, pactLoader) - Method in class au.com.dius.pact.provider.junit.PactRunner
 
setupReporters() - Method in class au.com.dius.pact.provider.junit.target.BaseTarget
 
setupTargetForInteraction() - Method in class au.com.dius.pact.provider.junit.InteractionRunner
 
setupVerifier(interaction, provider, consumer) - Method in class au.com.dius.pact.provider.junit.target.AmqpTarget
 
setupVerifier() - Method in class au.com.dius.pact.provider.junit.target.BaseTarget
 
setupVerifier() - Method in class au.com.dius.pact.provider.junit.target.HttpTarget
 
setValueResolver() - Method in class au.com.dius.pact.provider.junit.loader.PactBrokerLoader
 
setValueResolver() - Method in interface au.com.dius.pact.provider.junit.loader.PactLoader
Sets the value resolver to use to resolve property expressions. By default a system property resolver will be used.
setValueResolver() - Method in class au.com.dius.pact.provider.junit.target.BaseTarget
 
START_EXPRESSION - Static variable in class au.com.dius.pact.provider.junit.sysprops.PactRunnerExpressionParser
 
State - Interface in au.com.dius.pact.provider.junit
Used to mark methods that should be run on state change
surrogateTestMethod() - Method in class au.com.dius.pact.provider.junit.InteractionRunner
 
SystemPropertyResolver - Class in au.com.dius.pact.provider.junit.sysprops
 
SystemPropertyResolver.PropertyValueTuple - Class in au.com.dius.pact.provider.junit.sysprops
 

T

tags() - Method in interface au.com.dius.pact.provider.junit.loader.PactBroker
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
Target - Interface in au.com.dius.pact.provider.junit.target
Run Interaction and perform response verification
TargetRequestFilter - Interface in au.com.dius.pact.provider.junit
Annotation to mark a test method as a request filter. The method must receive a single HttpRequest parameter
testClass - Variable in class au.com.dius.pact.provider.junit.target.BaseTarget
 
TestClassAwareTarget - Interface in au.com.dius.pact.provider.junit.target
Interface to target implementations that require more information from the test class (like annotated methods)
testInteraction(consumerName, interaction, source) - Method in class au.com.dius.pact.provider.junit.target.AmqpTarget
{@inheritDoc}
testInteraction() - Method in class au.com.dius.pact.provider.junit.target.BaseTarget
{@inheritDoc}
testInteraction() - Method in class au.com.dius.pact.provider.junit.target.HttpTarget
{@inheritDoc}
testInteraction() - Method in interface au.com.dius.pact.provider.junit.target.Target
Run Interaction and perform response verification Any exception will be caught by caller and reported as test failure
testTarget - Variable in class au.com.dius.pact.provider.junit.target.BaseTarget
 
TestTarget - Interface in au.com.dius.pact.provider.junit.target
Mark au.com.dius.pact.provider.junit.target.Target for contract tests

U

urls() - Method in interface au.com.dius.pact.provider.junit.loader.PactUrl
 
urls() - Method in interface au.com.dius.pact.provider.junit.loader.VersionedPactUrl
 
username() - Method in interface au.com.dius.pact.provider.junit.loader.PactBrokerAuth
Username to use for authentication

V

validate() - Method in class au.com.dius.pact.provider.junit.InteractionRunner
 
validateConstructor() - Method in class au.com.dius.pact.provider.junit.InteractionRunner
 
validatePublicVoidNoArgMethods() - Method in class au.com.dius.pact.provider.junit.InteractionRunner
 
validateRules() - Method in class au.com.dius.pact.provider.junit.InteractionRunner
 
validateTestTarget() - Method in class au.com.dius.pact.provider.junit.InteractionRunner
 
value() - Method in interface au.com.dius.pact.provider.junit.Consumer
 
value() - Method in interface au.com.dius.pact.provider.junit.loader.PactFilter
 
value() - Method in interface au.com.dius.pact.provider.junit.loader.PactFolder
 
value() - Method in interface au.com.dius.pact.provider.junit.loader.PactSource
 
value() - Method in interface au.com.dius.pact.provider.junit.Provider
 
value() - Method in interface au.com.dius.pact.provider.junit.State
 
value() - Method in interface au.com.dius.pact.provider.junit.VerificationReports
Names of the reports to generate
valueResolver() - Method in interface au.com.dius.pact.provider.junit.loader.PactBroker
Override the default value resolver for resolving the values in the expressions
ValueResolver - Interface in au.com.dius.pact.provider.junit.sysprops
 
valueResolver - Variable in class au.com.dius.pact.provider.junit.target.BaseTarget
 
VALUES_SEPARATOR - Static variable in class au.com.dius.pact.provider.junit.sysprops.PactRunnerExpressionParser
 
VerificationReports - Interface in au.com.dius.pact.provider.junit
Annotation to control the generation of verification reports
VersionedPactUrl - Interface in au.com.dius.pact.provider.junit.loader
Used to point au.com.dius.pact.provider.junit.PactRunner to a versioned source of pacts for contract tests. Use ${any.variable} in the url and specify any.variable as a system property. For example, when you annotate a provider test class with: @VersionedPactUrl(urls = {"http://artifactory:8081/artifactory/consumercontracts/foo-bar/${foo.version}/foo-bar-${foo.version}.json"}) And pass a system property foo.version to the JVM, for example -Dfoo.version=123 Then the pact tests will fetch the following contract: http://artifactory:8081/artifactory/consumercontracts/foo-bar/123/foo-bar-123.json
VersionedPactUrlLoader - Class in au.com.dius.pact.provider.junit.loader
Implementation of PactLoader that downloads pacts from given urls containing versions to be filtered in from system properties.
VersionedPactUrlLoader() - Constructor for class au.com.dius.pact.provider.junit.loader.VersionedPactUrlLoader
 
VersionedPactUrlLoader() - Constructor for class au.com.dius.pact.provider.junit.loader.VersionedPactUrlLoader
 

W

withAfters() - Method in class au.com.dius.pact.provider.junit.InteractionRunner
 
withBefores() - Method in class au.com.dius.pact.provider.junit.InteractionRunner
 
withRules() - Method in class au.com.dius.pact.provider.junit.InteractionRunner
 
withStateChanges() - Method in class au.com.dius.pact.provider.junit.InteractionRunner
 
A B C D E F G H I J L M N P R S T U V W 
Skip navigation links