Skip navigation links
A B C E F G H M P R S T V W 

A

apply() - Method in class au.com.dius.pact.consumer.BaseProviderRule
 
apply() - Method in class au.com.dius.pact.consumer.MessagePactProviderRule
 
apply() - Method in class au.com.dius.pact.consumer.PactProviderRule
 
apply() - Method in class au.com.dius.pact.consumer.PactRule
 
au.com.dius.pact.consumer - package au.com.dius.pact.consumer
 

B

BaseProviderRule - Class in au.com.dius.pact.consumer
 
BaseProviderRule() - Constructor for class au.com.dius.pact.consumer.BaseProviderRule
 

C

config - Variable in class au.com.dius.pact.consumer.BaseProviderRule
 
consumer() - Static method in class au.com.dius.pact.consumer.MessagePactBuilder
Name the consumer of the pact
consumer() - Method in interface au.com.dius.pact.consumer.Pact
name of the consumer
consumerName() - Method in class au.com.dius.pact.consumer.ConsumerPactTest
 
consumerName() - Method in class au.com.dius.pact.consumer.ConsumerPactTestMk2
 
ConsumerPactTest - Class in au.com.dius.pact.consumer
 
ConsumerPactTestMk2 - Class in au.com.dius.pact.consumer
 
createFragment() - Method in class au.com.dius.pact.consumer.ConsumerPactTest
 
createPact() - Method in class au.com.dius.pact.consumer.ConsumerPactTestMk2
 

E

expectsToReceive() - Method in class au.com.dius.pact.consumer.MessagePactBuilder
Adds a message expectation in the pact.

F

fragment() - Method in interface au.com.dius.pact.consumer.PactVerification
Method to call to get the pact fragment. Defaults to empty string which results in using the first one found

G

getConfig() - Method in class au.com.dius.pact.consumer.BaseProviderRule
 
getConfig() - Method in class au.com.dius.pact.consumer.PactProviderRule
 
getConfig() - Method in class au.com.dius.pact.consumer.PactRule
 
getMessage() - Method in class au.com.dius.pact.consumer.MessagePactProviderRule
 
getMetadata() - Method in class au.com.dius.pact.consumer.MessagePactProviderRule
 
getMockServer() - Method in class au.com.dius.pact.consumer.BaseProviderRule
 
getPacts() - Method in class au.com.dius.pact.consumer.BaseProviderRule
scan all methods for @Pact annotation and execute them, if not already initialized
getPacts() - Method in class au.com.dius.pact.consumer.PactProviderRule
scan all methods for @Pact annotation and execute them, if not already initialized
getPacts() - Method in class au.com.dius.pact.consumer.PactRule
scan all methods for @Pact annotation and execute them, if not already initialized
getPort() - Method in class au.com.dius.pact.consumer.BaseProviderRule
Returns the port number for the mock server. Returns null if the mock server is not running.
getSpecificationVersion() - Method in class au.com.dius.pact.consumer.ConsumerPactTest
 
getSpecificationVersion() - Method in class au.com.dius.pact.consumer.ConsumerPactTestMk2
 
getUrl() - Method in class au.com.dius.pact.consumer.BaseProviderRule
Returns the URL for the mock server. Returns null if the mock server is not running.
given() - Method in class au.com.dius.pact.consumer.MessagePactBuilder
Sets the provider state.

H

hasPactWith() - Method in class au.com.dius.pact.consumer.MessagePactBuilder
Name the provider that the consumer has a pact with.

M

MessagePactBuilder - Class in au.com.dius.pact.consumer
PACT DSL builder for v3 specification
MessagePactProviderRule - Class in au.com.dius.pact.consumer
A junit rule that wraps every test annotated with PactVerification.
MessagePactProviderRule() - Constructor for class au.com.dius.pact.consumer.MessagePactProviderRule
 
MessagePactProviderRule() - Constructor for class au.com.dius.pact.consumer.MessagePactProviderRule
 

P

Pact - Interface in au.com.dius.pact.consumer
describes the interactions between a provider and a consumer. The annotated method has to be of following signature: public PactFragment providerDef1(PactDslWithProvider builder) {...}
PACT_VERIFIED - Static variable in class au.com.dius.pact.consumer.ConsumerPactTest
 
PACT_VERIFIED - Static variable in class au.com.dius.pact.consumer.PactRule
 
PactHttpsProviderRuleMk2 - Class in au.com.dius.pact.consumer
A junit rule that wraps every test annotated with PactVerification. Before each test, a mock server will be setup at given port/host that will provide mocked responses for the given provider. After each test, it will be teared down. If no host is given, it will default to 127.0.0.1. If no port is given, it will default to a random port.
PactHttpsProviderRuleMk2() - Constructor for class au.com.dius.pact.consumer.PactHttpsProviderRuleMk2
Creates a mock provider by the given name
PactHttpsProviderRuleMk2() - Constructor for class au.com.dius.pact.consumer.PactHttpsProviderRuleMk2
Creates a mock provider by the given name
PactHttpsProviderRuleMk2() - Constructor for class au.com.dius.pact.consumer.PactHttpsProviderRuleMk2
Creates a mock provider by the given name
PactHttpsProviderRuleMk2() - Constructor for class au.com.dius.pact.consumer.PactHttpsProviderRuleMk2
Creates a mock provider by the given name. Binds to localhost and a random port.
PactHttpsProviderRuleMk2() - Constructor for class au.com.dius.pact.consumer.PactHttpsProviderRuleMk2
Creates a mock provider by the given name. Binds to localhost and a random port.
PactMismatchesException - Exception in au.com.dius.pact.consumer
 
PactMismatchesException() - Constructor for exception au.com.dius.pact.consumer.PactMismatchesException
 
PactMismatchException - Exception in au.com.dius.pact.consumer
 
PactMismatchException() - Constructor for exception au.com.dius.pact.consumer.PactMismatchException
 
PactProviderRule - Class in au.com.dius.pact.consumer
A junit rule that wraps every test annotated with PactVerification. Before each test, a mock server will be setup at given port/host that will provide mocked responses for the given provider. After each test, it will be teared down. If no host is given, it will default to localhost. If no port is given, it will default to a random port.
PactProviderRule() - Constructor for class au.com.dius.pact.consumer.PactProviderRule
Creates a mock provider by the given name
PactProviderRule() - Constructor for class au.com.dius.pact.consumer.PactProviderRule
Creates a mock provider by the given name
PactProviderRule() - Constructor for class au.com.dius.pact.consumer.PactProviderRule
Creates a mock provider by the given name
PactProviderRule() - Constructor for class au.com.dius.pact.consumer.PactProviderRule
Creates a mock provider by the given name
PactProviderRule() - Constructor for class au.com.dius.pact.consumer.PactProviderRule
Creates a mock provider by the given name. Binds to localhost and a random port.
PactProviderRule() - Constructor for class au.com.dius.pact.consumer.PactProviderRule
Creates a mock provider by the given name. Binds to localhost and a random port.
PactProviderRuleMk2 - Class in au.com.dius.pact.consumer
A junit rule that wraps every test annotated with PactVerification. Before each test, a mock server will be setup at given port/host that will provide mocked responses for the given provider. After each test, it will be teared down. If no host is given, it will default to 127.0.0.1. If no port is given, it will default to a random port. If you need to use HTTPS, use PactHttpsProviderRuleMk2
PactProviderRuleMk2() - Constructor for class au.com.dius.pact.consumer.PactProviderRuleMk2
Creates a mock provider by the given name
PactProviderRuleMk2() - Constructor for class au.com.dius.pact.consumer.PactProviderRuleMk2
Creates a mock provider by the given name
PactProviderRuleMk2() - Constructor for class au.com.dius.pact.consumer.PactProviderRuleMk2
Creates a mock provider by the given name. Binds to localhost and a random port.
PactProviderRuleMk2() - Constructor for class au.com.dius.pact.consumer.PactProviderRuleMk2
Creates a mock provider by the given name. Binds to localhost and a random port.
PactRule - Class in au.com.dius.pact.consumer
A junit rule that wraps every test annotated with PactVerification. Before each test, a mock server will be setup at given port/host that will provide mocked responses. after each test, it will be teared down. If no host is given, it will default to localhost. If no port is given, it will default to a random port.
PactRule() - Constructor for class au.com.dius.pact.consumer.PactRule
 
PactRule() - Constructor for class au.com.dius.pact.consumer.PactRule
 
PactRule() - Constructor for class au.com.dius.pact.consumer.PactRule
 
PactVerification - Interface in au.com.dius.pact.consumer
Before each test, a mock server will be setup at given port/host that will provide mocked responses. after each test, it will be teared down.
PactVerifications - Interface in au.com.dius.pact.consumer
 
provider - Variable in class au.com.dius.pact.consumer.BaseProviderRule
 
provider() - Method in interface au.com.dius.pact.consumer.Pact
name of the provider
providerName() - Method in class au.com.dius.pact.consumer.ConsumerPactTest
 
providerName() - Method in class au.com.dius.pact.consumer.ConsumerPactTestMk2
 

R

runTest() - Method in class au.com.dius.pact.consumer.ConsumerPactTest
 
runTest() - Method in class au.com.dius.pact.consumer.ConsumerPactTestMk2
 

S

state() - Method in interface au.com.dius.pact.consumer.Pact
name of the state, the provider has to be in

T

target - Variable in class au.com.dius.pact.consumer.BaseProviderRule
 
testPact() - Method in class au.com.dius.pact.consumer.ConsumerPactTest
 
testPact() - Method in class au.com.dius.pact.consumer.ConsumerPactTestMk2
 
toPact() - Method in class au.com.dius.pact.consumer.MessagePactBuilder
 

V

validateResult() - Method in class au.com.dius.pact.consumer.BaseProviderRule
 
value() - Method in interface au.com.dius.pact.consumer.PactVerification
the tested provider name.
value() - Method in interface au.com.dius.pact.consumer.PactVerifications
 

W

withContent() - Method in class au.com.dius.pact.consumer.MessagePactBuilder
 
withMetadata() - Method in class au.com.dius.pact.consumer.MessagePactBuilder
 
A B C E F G H M P R S T V W 
Skip navigation links