Skip navigation links
A B C D E G H I J M P Q R S T U W X 

A

au.com.dius.pact.consumer - package au.com.dius.pact.consumer
 
au.com.dius.pact.consumer.dsl - package au.com.dius.pact.consumer.dsl
 

B

body(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
The body of the request
body(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
The body of the request
body(String, ContentType) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
The body of the request
body(Supplier<String>) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
The body of the request
body(Supplier<String>, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
The body of the request
body(Supplier<String>, ContentType) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
The body of the request
body(JSONObject) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
The body of the request
body(DslPart) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
The body of the request
body(Document) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
The body of the request
body(PactXmlBuilder) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
XML Response body to return
body(MultipartEntityBuilder) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
The body of the request
body(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
The body of the request
body(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
The body of the request
body(String, ContentType) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
The body of the request
body(Supplier<String>) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
The body of the request
body(Supplier<String>, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
The body of the request
body(Supplier<String>, ContentType) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
The body of the request
body(JSONObject) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
The body of the request
body(DslPart) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
The body of the request
body(Document) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
The body of the request
body(PactXmlBuilder) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
XML body to return
body(MultipartEntityBuilder) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
The body of the request
body(BodyBuilder) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Sets the body using the buidler
body(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
Response body to return
body(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
Response body to return
body(String, ContentType) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
Response body to return
body(Supplier<String>) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
The body of the request
body(Supplier<String>, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
The body of the request
body(Supplier<String>, ContentType) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
The body of the request
body(JSONObject) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
Response body to return
body(DslPart) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
Response body to return
body(Document) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
Response body to return
body(PactXmlBuilder) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
XML Response body to return
BodyBuilder - Interface in au.com.dius.pact.consumer.dsl
Interface to a builder that constructs a body, including matchers and generators
bodyWithSingleQuotes(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.
bodyWithSingleQuotes(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.
bodyWithSingleQuotes(String, ContentType) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.
bodyWithSingleQuotes(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.
bodyWithSingleQuotes(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.
bodyWithSingleQuotes(String, ContentType) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.
bodyWithSingleQuotes(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.
bodyWithSingleQuotes(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.
bodyWithSingleQuotes(String, ContentType) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.
buildBody() - Method in interface au.com.dius.pact.consumer.dsl.BodyBuilder
Constructs the body returning the contents as a byte array

C

consumer(String) - Static method in class au.com.dius.pact.consumer.ConsumerPactBuilder
Name the consumer of the pact
ConsumerPactBuilder - Class in au.com.dius.pact.consumer
 
ConsumerPactBuilder(String) - Constructor for class au.com.dius.pact.consumer.ConsumerPactBuilder
 
CONTENT_TYPE - Static variable in class au.com.dius.pact.consumer.dsl.PactDslRequestBase
 
convert(String) - Static method in class au.com.dius.pact.consumer.dsl.QuoteUtil
Reads the input text with possible single quotes as delimiters and returns a String correctly formatted.

D

defaultRequestValues - Variable in class au.com.dius.pact.consumer.dsl.PactDslRequestBase
 

E

encodedQuery(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
The encoded query string for the request

G

getConsumerName() - Method in class au.com.dius.pact.consumer.ConsumerPactBuilder
Returns the name of the consumer
getConsumerPactBuilder() - Method in class au.com.dius.pact.consumer.dsl.PactDslWithProvider
 
getContentType() - Method in interface au.com.dius.pact.consumer.dsl.BodyBuilder
Returns the content type for the body
getContentTypeHeader() - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestBase
 
getContentTypeHeader() - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
 
getGenerators() - Method in interface au.com.dius.pact.consumer.dsl.BodyBuilder
Returns the generators for the body
getInteractions() - Method in class au.com.dius.pact.consumer.ConsumerPactBuilder
 
getMatchers() - Method in interface au.com.dius.pact.consumer.dsl.BodyBuilder
Returns the matchers for the body
given(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
Adds a provider state to this interaction
given(String, Map<String, Object>) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
Adds a provider state to this interaction
given(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslWithProvider
Describe the state the provider needs to be in for the pact test to be verified.
given(String, Map<String, Object>) - Method in class au.com.dius.pact.consumer.dsl.PactDslWithProvider
Describe the state the provider needs to be in for the pact test to be verified.
given(String, String, Object, Object...) - Method in class au.com.dius.pact.consumer.dsl.PactDslWithProvider
Describe the state the provider needs to be in for the pact test to be verified.
given(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslWithState
Adds another provider state to this interaction
given(String, Map<String, Object>) - Method in class au.com.dius.pact.consumer.dsl.PactDslWithState
Adds another provider state to this interaction

H

hasPactWith(String) - Method in class au.com.dius.pact.consumer.ConsumerPactBuilder
Name the provider that the consumer has a pact with
headerFromProviderState(String, String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
Adds a header that will have it's value injected from the provider state
headerFromProviderState(String, String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Adds a header that will have it's value injected from the provider state
headerFromProviderState(String, String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
Adds a header that will have it's value injected from the provider state
headers(Map<String, String>) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
Headers to be included in the request
headers(String, String, String...) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
Headers to be included in the request
headers(String, String, String...) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Headers to be included in the request
headers(Map<String, String>) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Headers to be included in the request
headers(Map<String, String>) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
Response headers to return Provide the headers you want to validate, other headers will be ignored.

I

InvalidMatcherException - Exception in au.com.dius.pact.consumer
 
InvalidMatcherException(String) - Constructor for exception au.com.dius.pact.consumer.InvalidMatcherException
 
isContentTypeHeaderNotSet() - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestBase
 
isContentTypeHeaderNotSet() - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
 

J

jsonBody() - Static method in class au.com.dius.pact.consumer.ConsumerPactBuilder
 

M

matchHeader(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Match a request header.
matchHeader(String, String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Match a request header.
matchHeader(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
Match a response header.
matchHeader(String, String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
Match a response header.
matchPath(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
The path of the request.
matchPath(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
The path of the request
matchPath(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
The path of the request.
matchPath(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
The path of the request
matchQuery(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Match a query parameter with a regex.
matchQuery(String, String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Match a query parameter with a regex.
matchQuery(String, String, List<String>) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Match a repeating query parameter with a regex.
matchSetCookie(String, String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
Match a set cookie header
method(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
The HTTP method for the request
method(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
The HTTP method for the request
MockServerException - Exception in au.com.dius.pact.consumer
 
MockServerException() - Constructor for exception au.com.dius.pact.consumer.MockServerException
 
MockServerException(String) - Constructor for exception au.com.dius.pact.consumer.MockServerException
 
MockServerException(String, Throwable) - Constructor for exception au.com.dius.pact.consumer.MockServerException
 
MockServerException(Throwable) - Constructor for exception au.com.dius.pact.consumer.MockServerException
 
MockServerException(String, Throwable, boolean, boolean) - Constructor for exception au.com.dius.pact.consumer.MockServerException
 

P

PactDslRequestBase - Class in au.com.dius.pact.consumer.dsl
 
PactDslRequestBase(PactDslRequestWithoutPath) - Constructor for class au.com.dius.pact.consumer.dsl.PactDslRequestBase
 
PactDslRequestWithoutPath - Class in au.com.dius.pact.consumer.dsl
 
PactDslRequestWithoutPath(ConsumerPactBuilder, PactDslWithState, String, PactDslRequestWithoutPath, PactDslResponse) - Constructor for class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
 
PactDslRequestWithPath - Class in au.com.dius.pact.consumer.dsl
 
PactDslResponse - Class in au.com.dius.pact.consumer.dsl
 
PactDslResponse(ConsumerPactBuilder, PactDslRequestWithPath, PactDslRequestWithoutPath, PactDslResponse) - Constructor for class au.com.dius.pact.consumer.dsl.PactDslResponse
 
PactDslWithProvider - Class in au.com.dius.pact.consumer.dsl
 
PactDslWithProvider(ConsumerPactBuilder, String) - Constructor for class au.com.dius.pact.consumer.dsl.PactDslWithProvider
 
PactDslWithState - Class in au.com.dius.pact.consumer.dsl
 
path(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
The path of the request
path(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
The path of the request
pathFromProviderState(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
Sets the path to have it's value injected from the provider state
pathFromProviderState(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Sets the path to have it's value injected from the provider state

Q

query - Variable in class au.com.dius.pact.consumer.dsl.PactDslRequestBase
 
query(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
The query string for the request
query(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
The query string for the request
queryMatchingDate(String, String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
Matches a date field using the provided date pattern
queryMatchingDate(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
Matches a date field using the provided date pattern.
queryMatchingDate(String, String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Matches a date field using the provided date pattern
queryMatchingDate(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Matches a date field using the provided date pattern.
queryMatchingDateBase(String, String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestBase
 
queryMatchingDatetime(String, String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
Matches a datetime field using the provided pattern
queryMatchingDatetime(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
Matches a datetime field using the provided pattern.
queryMatchingDatetime(String, String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Matches a datetime field using the provided pattern
queryMatchingDatetime(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Matches a datetime field using the provided pattern.
queryMatchingDatetimeBase(String, String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestBase
 
queryMatchingISODate(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
Matches a date field using the ISO date pattern
queryMatchingISODate(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
Matches a date field using the ISO date pattern.
queryMatchingISODate(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Matches a date field using the ISO date pattern
queryMatchingISODate(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Matches a date field using the ISO date pattern.
queryMatchingISODatetime(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
Matches a datetime field using the ISO pattern
queryMatchingISODatetime(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
Matches a datetime field using the ISO pattern.
queryMatchingISODatetime(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Matches a datetime field using the ISO pattern
queryMatchingISODatetime(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Matches a datetime field using the ISO pattern.
queryMatchingISOTime(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
Matches a time field using the ISO time pattern
queryMatchingISOTime(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Matches a time field using the ISO time pattern
queryMatchingTime(String, String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
Matches a time field using the provided time pattern
queryMatchingTime(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
Matches a time field using the provided time pattern.
queryMatchingTime(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
Matches a time field using the ISO time pattern.
queryMatchingTime(String, String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Matches a time field using the provided time pattern
queryMatchingTime(String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Matches a time field using the provided time pattern.
queryMatchingTime(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Matches a time field using the ISO time pattern.
queryMatchingTimeBase(String, String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestBase
 
queryParameterFromProviderState(String, String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
Adds a query parameter that will have it's value injected from the provider state
queryParameterFromProviderState(String, String, String) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Adds a query parameter that will have it's value injected from the provider state
QuoteUtil - Class in au.com.dius.pact.consumer.dsl
Util class for dealing with Json format

R

requestBody - Variable in class au.com.dius.pact.consumer.dsl.PactDslRequestBase
 
requestGenerators - Variable in class au.com.dius.pact.consumer.dsl.PactDslRequestBase
 
requestHeaders - Variable in class au.com.dius.pact.consumer.dsl.PactDslRequestBase
 
requestMatchers - Variable in class au.com.dius.pact.consumer.dsl.PactDslRequestBase
 
requestMethod - Variable in class au.com.dius.pact.consumer.dsl.PactDslRequestBase
 

S

setDefaultRequestValues(PactDslRequestWithoutPath) - Method in class au.com.dius.pact.consumer.dsl.PactDslWithProvider
 
setDefaultResponseValues(PactDslResponse) - Method in class au.com.dius.pact.consumer.dsl.PactDslWithProvider
 
setupDefaultValues() - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestBase
 
setupFileUpload(String, String, String, byte[]) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestBase
 
setupMultipart(MultipartEntityBuilder) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestBase
 
status(int) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
Response status code

T

toPact() - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
Terminates the DSL and builds a pact to represent the interactions

U

uponReceiving(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
Description of the request that is expected to be received
uponReceiving(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslWithProvider
Description of the request that is expected to be received
uponReceiving(String) - Method in class au.com.dius.pact.consumer.dsl.PactDslWithState
Description of the request that is expected to be received

W

willRespondWith() - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Define the response to return
withBinaryData(byte[], String) - Method in class au.com.dius.pact.consumer.dsl.PactDslResponse
Response body as a binary data.
withFileUpload(String, String, String, byte[]) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithoutPath
Sets up a file upload request.
withFileUpload(String, String, String, byte[]) - Method in class au.com.dius.pact.consumer.dsl.PactDslRequestWithPath
Sets up a file upload request.

X

xmlToString(Document) - Static method in class au.com.dius.pact.consumer.ConsumerPactBuilder
 
A B C D E G H I J M P Q R S T U W X 
Skip navigation links