public class PactDslRootValue
extends DslPart
Matcher to create a plain root matching strategy. Used with text/plain to match regex responses
DATE_2000, HEXADECIMAL, IP_ADDRESS, UUID_REGEX, closed, generators, matchers, parent, rootName, rootPath| Constructor and Description |
|---|
PactDslRootValue() |
| Modifier and Type | Method and Description |
|---|---|
static PactDslRootValue |
and()
Combine all the matchers using AND
|
PactDslJsonArray |
array()
Deprecated.
|
PactDslJsonArray |
array()
Deprecated.
|
PactDslJsonBody |
arrayLike()
Deprecated.
|
PactDslJsonBody |
arrayLike()
Deprecated.
|
static PactDslRootValue |
booleanType()
Value that must be a boolean
|
static PactDslRootValue |
booleanType()
Value that must be a boolean
|
DslPart |
close() |
DslPart |
closeArray()
Deprecated.
|
DslPart |
closeObject()
Deprecated.
|
static PactDslRootValue |
date()
Value that must be formatted as an ISO date
|
static PactDslRootValue |
date()
Value that must match the provided date format
|
static PactDslRootValue |
date()
Value that must match the provided date format
|
static PactDslRootValue |
decimalType()
Value that must be a decimal value
|
static PactDslRootValue |
decimalType()
Value that must be a decimalType value
|
static PactDslRootValue |
decimalType()
Value that must be a decimalType value
|
PactDslJsonArray |
eachArrayLike()
Deprecated.
|
PactDslJsonArray |
eachArrayLike()
Deprecated.
|
PactDslJsonArray |
eachArrayLike()
Deprecated.
|
PactDslJsonArray |
eachArrayLike()
Deprecated.
|
PactDslJsonArray |
eachArrayWithMaxLike()
Deprecated.
|
PactDslJsonArray |
eachArrayWithMaxLike()
Deprecated.
|
PactDslJsonArray |
eachArrayWithMaxLike()
Deprecated.
|
PactDslJsonArray |
eachArrayWithMaxLike()
Deprecated.
|
PactDslJsonArray |
eachArrayWithMinLike()
Deprecated.
|
PactDslJsonArray |
eachArrayWithMinLike()
Deprecated.
|
PactDslJsonArray |
eachArrayWithMinLike()
Deprecated.
|
PactDslJsonArray |
eachArrayWithMinLike()
Deprecated.
|
PactDslJsonArray |
eachArrayWithMinMaxLike()
Deprecated.
|
PactDslJsonArray |
eachArrayWithMinMaxLike()
Deprecated.
|
PactDslJsonArray |
eachArrayWithMinMaxLike()
Deprecated.
|
PactDslJsonArray |
eachArrayWithMinMaxLike()
Deprecated.
|
PactDslJsonBody |
eachLike()
Deprecated.
|
PactDslJsonBody |
eachLike()
Deprecated.
|
PactDslJsonBody |
eachLike()
Deprecated.
|
PactDslJsonBody |
eachLike()
Deprecated.
|
java.lang.Object |
getBody() |
static PactDslRootValue |
hexValue()
Value that must be encoded as a hexadecimal value
|
static PactDslRootValue |
hexValue()
Value that must be encoded as a hexadecimal value
|
static PactDslRootValue |
id()
Value that must be a numeric identifier
|
static PactDslRootValue |
id()
Value that must be a numeric identifier
|
static PactDslRootValue |
integerType()
Value that must be an integer
|
static PactDslRootValue |
integerType()
Value that must be an integer
|
static PactDslRootValue |
integerType()
Value that must be an integer
|
static PactDslRootValue |
ipAddress()
Value that must be an IP4 address
|
PactDslJsonBody |
maxArrayLike()
Deprecated.
|
PactDslJsonBody |
maxArrayLike()
Deprecated.
|
PactDslJsonBody |
maxArrayLike()
Deprecated.
|
PactDslJsonBody |
maxArrayLike()
Deprecated.
|
PactDslJsonBody |
minArrayLike()
Deprecated.
|
PactDslJsonBody |
minArrayLike()
Deprecated.
|
PactDslJsonBody |
minArrayLike()
Deprecated.
|
PactDslJsonBody |
minArrayLike()
Deprecated.
|
PactDslJsonBody |
minMaxArrayLike()
Deprecated.
|
PactDslJsonBody |
minMaxArrayLike()
Deprecated.
|
PactDslJsonBody |
minMaxArrayLike()
Deprecated.
|
PactDslJsonBody |
minMaxArrayLike()
Deprecated.
|
static PactDslRootValue |
numberType()
Value that can be any number
|
static PactDslRootValue |
numberType()
Value that can be any number
|
PactDslJsonBody |
object()
Deprecated.
|
PactDslJsonBody |
object()
Deprecated.
|
static PactDslRootValue |
or()
Combine all the matchers using OR
|
void |
putArray() |
void |
putObject() |
void |
setMatcher() |
void |
setValue() |
static PactDslRootValue |
stringMatcher()
Value that must match the regular expression
|
static PactDslRootValue |
stringMatcher()
Value that must match the regular expression
|
static PactDslRootValue |
stringType()
Value that can be any string
|
static PactDslRootValue |
stringType()
Value that can be any string
|
static PactDslRootValue |
time()
Value that must be an ISO formatted time
|
static PactDslRootValue |
time()
Value that must match the given time format
|
static PactDslRootValue |
time()
Value that must match the given time format
|
static PactDslRootValue |
timestamp()
Value that must be an ISO formatted timestamp
|
static PactDslRootValue |
timestamp()
Value that must match the given timestamp format
|
static PactDslRootValue |
timestamp()
Value that must match the given timestamp format
|
static PactDslRootValue |
uuid()
Value that must be encoded as an UUID
|
static PactDslRootValue |
uuid()
Value that must be encoded as an UUID
|
static PactDslRootValue |
uuid()
Value that must be encoded as an UUID
|
static PactDslRootValue |
valueFromProviderState()
Adds a value that will have it's value injected from the provider state
|
array, array, arrayLike, arrayLike, asArray, asBody, close, closeArray, closeObject, eachArrayLike, eachArrayLike, eachArrayLike, eachArrayLike, eachArrayWithMaxLike, eachArrayWithMaxLike, eachArrayWithMaxLike, eachArrayWithMaxLike, eachArrayWithMinLike, eachArrayWithMinLike, eachArrayWithMinLike, eachArrayWithMinLike, eachArrayWithMinMaxLike, eachArrayWithMinMaxLike, eachArrayWithMinMaxLike, eachArrayWithMinMaxLike, eachLike, eachLike, eachLike, eachLike, getBody, getGenerators, getMatchers, getParent, includesMatcher, matchDate, matchMax, matchMin, matchMinMax, matchTime, matchTimestamp, maxArrayLike, maxArrayLike, maxArrayLike, maxArrayLike, minArrayLike, minArrayLike, minArrayLike, minArrayLike, minMaxArrayLike, minMaxArrayLike, minMaxArrayLike, minMaxArrayLike, object, object, putArray, putObject, regexp, setGenerators, setMatcherspublic void putObject()
public void putArray()
public java.lang.Object getBody()
public PactDslJsonArray array()
public PactDslJsonArray array()
public DslPart closeArray()
public PactDslJsonBody arrayLike()
public PactDslJsonBody arrayLike()
public PactDslJsonBody eachLike()
public PactDslJsonBody eachLike()
public PactDslJsonBody eachLike()
public PactDslJsonBody eachLike()
public PactDslJsonBody minArrayLike()
public PactDslJsonBody minArrayLike()
public PactDslJsonBody minArrayLike()
public PactDslJsonBody minArrayLike()
public PactDslJsonBody maxArrayLike()
public PactDslJsonBody maxArrayLike()
public PactDslJsonBody maxArrayLike()
public PactDslJsonBody maxArrayLike()
public PactDslJsonBody minMaxArrayLike()
public PactDslJsonBody minMaxArrayLike()
public PactDslJsonBody minMaxArrayLike()
public PactDslJsonBody minMaxArrayLike()
public PactDslJsonBody object()
public PactDslJsonBody object()
public DslPart closeObject()
public DslPart close()
public static PactDslRootValue stringType()
Value that can be any string
public static PactDslRootValue stringType()
Value that can be any string
public static PactDslRootValue numberType()
Value that can be any number
public static PactDslRootValue numberType()
Value that can be any number
public static PactDslRootValue integerType()
Value that must be an integer
public static PactDslRootValue integerType()
Value that must be an integer
public static PactDslRootValue integerType()
Value that must be an integer
public static PactDslRootValue decimalType()
Value that must be a decimal value
public static PactDslRootValue decimalType()
Value that must be a decimalType value
public static PactDslRootValue decimalType()
Value that must be a decimalType value
public static PactDslRootValue booleanType()
Value that must be a boolean
public static PactDslRootValue booleanType()
Value that must be a boolean
public static PactDslRootValue stringMatcher()
Value that must match the regular expression
public static PactDslRootValue stringMatcher()
Value that must match the regular expression
public static PactDslRootValue timestamp()
Value that must be an ISO formatted timestamp
public static PactDslRootValue timestamp()
Value that must match the given timestamp format
public static PactDslRootValue timestamp()
Value that must match the given timestamp format
public static PactDslRootValue date()
Value that must be formatted as an ISO date
public static PactDslRootValue date()
Value that must match the provided date format
public static PactDslRootValue date()
Value that must match the provided date format
public static PactDslRootValue time()
Value that must be an ISO formatted time
public static PactDslRootValue time()
Value that must match the given time format
public static PactDslRootValue time()
Value that must match the given time format
public static PactDslRootValue ipAddress()
Value that must be an IP4 address
public static PactDslRootValue id()
Value that must be a numeric identifier
public static PactDslRootValue id()
Value that must be a numeric identifier
public static PactDslRootValue hexValue()
Value that must be encoded as a hexadecimal value
public static PactDslRootValue hexValue()
Value that must be encoded as a hexadecimal value
public static PactDslRootValue uuid()
Value that must be encoded as an UUID
public static PactDslRootValue uuid()
Value that must be encoded as an UUID
public static PactDslRootValue uuid()
Value that must be encoded as an UUID
public void setValue()
public void setMatcher()
public PactDslJsonArray eachArrayLike()
public PactDslJsonArray eachArrayLike()
public PactDslJsonArray eachArrayWithMaxLike()
public PactDslJsonArray eachArrayWithMaxLike()
public PactDslJsonArray eachArrayWithMaxLike()
public PactDslJsonArray eachArrayWithMaxLike()
public PactDslJsonArray eachArrayWithMinLike()
public PactDslJsonArray eachArrayWithMinLike()
public PactDslJsonArray eachArrayWithMinLike()
public PactDslJsonArray eachArrayWithMinLike()
public PactDslJsonArray eachArrayWithMinMaxLike()
public PactDslJsonArray eachArrayWithMinMaxLike()
public PactDslJsonArray eachArrayWithMinMaxLike()
public PactDslJsonArray eachArrayWithMinMaxLike()
public PactDslJsonArray eachArrayLike()
public PactDslJsonArray eachArrayLike()
public static PactDslRootValue and()
Combine all the matchers using AND
public static PactDslRootValue or()
Combine all the matchers using OR
public static PactDslRootValue valueFromProviderState()
Adds a value that will have it's value injected from the provider state