Skip navigation links
A B C D F G M P R T V 

A

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

B

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

C

config - Variable in class au.com.dius.pact.consumer.junit.BaseProviderRule
 
consumerName() - Method in class au.com.dius.pact.consumer.junit.ConsumerPactTest
 
ConsumerPactTest - Class in au.com.dius.pact.consumer.junit
 
createPact() - Method in class au.com.dius.pact.consumer.junit.ConsumerPactTest
 

D

DefaultRequestValues - Interface in au.com.dius.pact.consumer.junit
Marker annotation for a method that will setup the default request values used in the test. The annotated method must take a single parameter of PactDslRequestWithoutPath and set the default values on that object
DefaultResponseValues - Interface in au.com.dius.pact.consumer.junit
Marker annotation for a method that will setup the default response values used in the test The annotated method must take a single parameter of PactDslResponse and set the default values on that object

F

fragment() - Method in interface au.com.dius.pact.consumer.junit.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.junit.BaseProviderRule
 
getMessage() - Method in class au.com.dius.pact.consumer.junit.MessagePactProviderRule
 
getMetadata() - Method in class au.com.dius.pact.consumer.junit.MessagePactProviderRule
 
getMockServer() - Method in class au.com.dius.pact.consumer.junit.BaseProviderRule
 
getPacts() - Method in class au.com.dius.pact.consumer.junit.BaseProviderRule
scan all methods for @Pact annotation and execute them, if not already initialized
getPort() - Method in class au.com.dius.pact.consumer.junit.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.junit.ConsumerPactTest
 
getUrl() - Method in class au.com.dius.pact.consumer.junit.BaseProviderRule
Returns the URL for the mock server. Returns null if the mock server is not running.

M

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

P

PactHttpsProviderRule - Class in au.com.dius.pact.consumer.junit
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.
PactHttpsProviderRule() - Constructor for class au.com.dius.pact.consumer.junit.PactHttpsProviderRule
Creates a mock provider by the given name
PactHttpsProviderRule() - Constructor for class au.com.dius.pact.consumer.junit.PactHttpsProviderRule
Creates a mock provider by the given name
PactHttpsProviderRule() - Constructor for class au.com.dius.pact.consumer.junit.PactHttpsProviderRule
Creates a mock provider by the given name
PactHttpsProviderRule() - Constructor for class au.com.dius.pact.consumer.junit.PactHttpsProviderRule
Creates a mock provider by the given name. Binds to localhost and a random port.
PactHttpsProviderRule() - Constructor for class au.com.dius.pact.consumer.junit.PactHttpsProviderRule
Creates a mock provider by the given name. Binds to localhost and a random port.
PactProviderRule - Class in au.com.dius.pact.consumer.junit
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 PactHttpsProviderRule
PactProviderRule() - Constructor for class au.com.dius.pact.consumer.junit.PactProviderRule
Creates a mock provider by the given name
PactProviderRule() - Constructor for class au.com.dius.pact.consumer.junit.PactProviderRule
Creates a mock provider by the given name
PactProviderRule() - Constructor for class au.com.dius.pact.consumer.junit.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.junit.PactProviderRule
Creates a mock provider by the given name. Binds to localhost and a random port.
PactVerification - Interface in au.com.dius.pact.consumer.junit
Before each test, a mock server will be setup at given port/host that will provide mocked responses. After each test, it will be torn down.
PactVerifications - Interface in au.com.dius.pact.consumer.junit
 
provider - Variable in class au.com.dius.pact.consumer.junit.BaseProviderRule
 
providerName() - Method in class au.com.dius.pact.consumer.junit.ConsumerPactTest
 

R

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

T

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

V

validateResult() - Method in class au.com.dius.pact.consumer.junit.BaseProviderRule
 
value() - Method in interface au.com.dius.pact.consumer.junit.PactVerification
the tested provider name.
value() - Method in interface au.com.dius.pact.consumer.junit.PactVerifications
 
A B C D F G M P R T V 
Skip navigation links