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

A

AmqpTarget - 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
AmqpTarget() - Constructor for class au.com.dius.pact.provider.junit.target.AmqpTarget
 
AmqpTarget() - Constructor for class au.com.dius.pact.provider.junit.target.AmqpTarget
Initialises the AMPQ target with the list of packages to scan
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

Consumer - Interface in au.com.dius.pact.provider.junit
Used to pass consumer name to PactRunner

D

describeChild() - 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
 

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 - Class in au.com.dius.pact.provider.junit
Pact Runner that uses annotations to filter the interactions that are executed
FilteredPactRunner(clazz) - Constructor for class au.com.dius.pact.provider.junit.FilteredPactRunner
Pact Runner that uses annotations to filter the interactions that are executed
filterPacts(pacts) - Method in class au.com.dius.pact.provider.junit.FilteredPactRunner
 
filterPacts() - Method in class au.com.dius.pact.provider.junit.MessagePactRunner
 
filterPacts() - Method in class au.com.dius.pact.provider.junit.PactRunner
 
filterPacts() - Method in class au.com.dius.pact.provider.junit.RestPactRunner
 

G

getAssertionError() - Method in class au.com.dius.pact.provider.junit.target.BaseTarget
 
getChildren() - Method in class au.com.dius.pact.provider.junit.PactRunner
 
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() - Method in class au.com.dius.pact.provider.junit.PactRunner
 
getProviderInfo() - 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

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.
isFailIfNoPactsFound() - Method in class au.com.dius.pact.provider.junit.loader.PactBrokerLoader
 

L

load() - Method in class au.com.dius.pact.provider.junit.loader.PactBrokerLoader
 
load() - 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
 
loadPactsWithFiles() - Method in class au.com.dius.pact.provider.junit.loader.PactFolderLoader
 

M

MessagePactRunner - Class in au.com.dius.pact.provider.junit
 
MessagePactRunner() - Constructor for class au.com.dius.pact.provider.junit.MessagePactRunner
 
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

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 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 PactRunner to source of pacts for contract tests
PactFolderLoader - Class in au.com.dius.pact.provider.junit.loader
Out-of-the-box implementation of PactLoader that loads pacts from either a subfolder of project resource folder or a directory
PactFolderLoader() - Constructor for class au.com.dius.pact.provider.junit.loader.PactFolderLoader
 
PactFolderLoader() - Constructor for class au.com.dius.pact.provider.junit.loader.PactFolderLoader
 
PactFolderLoader() - Constructor for class au.com.dius.pact.provider.junit.loader.PactFolderLoader
 
PactFolderLoader() - 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 - Class in au.com.dius.pact.provider.junit
JUnit Runner runs pacts against provider To set up name of tested provider use Provider annotation To point on pact's source use PactBroker, PactFolder or PactSource annotations To point provider for testing use combination of Target interface and TestTarget annotation There is out-of-the-box implementation of Target: HttpTarget that will play interaction from pacts as http request and check http responses Runner supports: - org.junit.BeforeClass, org.junit.AfterClass and org.junit.ClassRule annotations, that will be run once - before/after whole contract test suite - org.junit.Before, org.junit.After and org.junit.Rule annotations, that will be run before/after each test of interaction WARNING: please note, that only org.junit.rules.TestRule is possible to use with this runner, i.e. org.junit.rules.MethodRule IS NOT supported - State - before each interaction that require state change, all methods annotated by State with appropriate state listed will be invoked
PactRunner() - Constructor for class au.com.dius.pact.provider.junit.PactRunner
 
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 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
 
propertyDefined() - Method in class au.com.dius.pact.provider.junit.sysprops.SystemPropertyResolver
 
propertyDefined() - Method in interface au.com.dius.pact.provider.junit.sysprops.ValueResolver
 
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
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 - Class in au.com.dius.pact.provider.junit
 
RestPactRunner() - Constructor for class au.com.dius.pact.provider.junit.RestPactRunner
 
runChild() - 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
 
setupReporters() - Method in class au.com.dius.pact.provider.junit.target.BaseTarget
 
setupVerifier() - 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.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
SystemPropertyResolver - 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() - 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

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 - 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 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
 
A B C D E F G H I L M N P R S T U V 
Skip navigation links