public class PactDslResponse
| Constructor and Description |
|---|
PactDslResponse() |
| Modifier and Type | Method and Description |
|---|---|
PactDslResponse |
body()
Response body to return
|
PactDslResponse |
body()
Response body to return
|
PactDslResponse |
body()
Response body to return
|
PactDslResponse |
body()
The body of the request
|
PactDslResponse |
body()
The body of the request
|
PactDslResponse |
body()
The body of the request
|
PactDslResponse |
body()
Response body to return
|
PactDslResponse |
body()
Response body to return
|
PactDslResponse |
body()
Response body to return
|
PactDslResponse |
bodyWithSingleQuotes()
The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.
|
PactDslResponse |
bodyWithSingleQuotes()
The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.
|
PactDslResponse |
bodyWithSingleQuotes()
The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.
|
PactDslWithState |
given()
Adds a provider state to this interaction
|
PactDslWithState |
given()
Adds a provider state to this interaction
|
PactDslResponse |
headerFromProviderState()
Adds a header that will have it's value injected from the provider state
|
PactDslResponse |
headers()
Response headers to return Provide the headers you want to validate, other headers will be ignored.
|
PactDslResponse |
matchHeader()
Match a response header. A random example header value will be generated from the provided regular expression.
|
PactDslResponse |
matchHeader()
Match a response header.
|
PactDslResponse |
matchSetCookie()
Match a set cookie header
|
PactDslResponse |
status()
Response status code
|
au.com.dius.pact.core.model.RequestResponsePact |
toPact()
Terminates the DSL and builds a pact to represent the interactions
|
PactDslRequestWithPath |
uponReceiving()
Description of the request that is expected to be received
|
public PactDslResponse status()
Response status code
public PactDslResponse headers()
Response headers to return Provide the headers you want to validate, other headers will be ignored.
public PactDslResponse body()
Response body to return
public PactDslResponse body()
Response body to return
public PactDslResponse body()
Response body to return
public PactDslResponse body()
The body of the request
public PactDslResponse body()
The body of the request
public PactDslResponse body()
The body of the request
public PactDslResponse bodyWithSingleQuotes()
The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.
public PactDslResponse bodyWithSingleQuotes()
The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.
public PactDslResponse bodyWithSingleQuotes()
The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.
public PactDslResponse body()
Response body to return
public PactDslResponse body()
Response body to return
public PactDslResponse body()
Response body to return
public PactDslResponse matchHeader()
Match a response header. A random example header value will be generated from the provided regular expression.
public PactDslResponse matchHeader()
Match a response header.
public au.com.dius.pact.core.model.RequestResponsePact toPact()
Terminates the DSL and builds a pact to represent the interactions
public PactDslRequestWithPath uponReceiving()
Description of the request that is expected to be received
public PactDslWithState given()
Adds a provider state to this interaction
public PactDslWithState given()
Adds a provider state to this interaction
public PactDslResponse headerFromProviderState()
Adds a header that will have it's value injected from the provider state
public PactDslResponse matchSetCookie()
Match a set cookie header