public class PactDslJsonArray extends DslPart
closed, DATE_2000, generators, HEXADECIMAL, IP_ADDRESS, matchers, parent, rootName, rootPath, UUID_REGEX| Constructor and Description |
|---|
PactDslJsonArray()
Construct a root level array
|
PactDslJsonArray(java.lang.String rootPath,
java.lang.String rootName,
DslPart parent)
Construct an array as a child
|
PactDslJsonArray(java.lang.String rootPath,
java.lang.String rootName,
DslPart parent,
boolean wildCard)
Construct a array as a child
|
PactDslJsonArray(java.lang.String rootPath,
java.lang.String rootName,
DslPart parent,
PactDslJsonArray array)
Construct an array as a child copied from an existing array
|
| Modifier and Type | Method and Description |
|---|---|
PactDslJsonArray |
and(java.lang.Object value,
au.com.dius.pact.core.model.matchingrules.MatchingRule... rules)
Combine all the matchers using AND
|
PactDslJsonArray |
array()
Element that is a JSON array
|
PactDslJsonArray |
array(java.lang.String name)
Field which is an array
|
static PactDslJsonBody |
arrayEachLike()
Array where each item must match the following example
|
static PactDslJsonBody |
arrayEachLike(java.lang.Integer numberExamples)
Array where each item must match the following example
|
static PactDslJsonArray |
arrayEachLike(java.lang.Integer numberExamples,
PactDslJsonRootValue value)
Root level array where each item must match the provided matcher
|
static PactDslJsonArray |
arrayEachLike(PactDslJsonRootValue rootValue)
Root level array where each item must match the provided matcher
|
static PactDslJsonBody |
arrayMaxLike(int maxSize)
Array with a maximum size where each item must match the following example
|
static PactDslJsonBody |
arrayMaxLike(int maxSize,
int numberExamples)
Array with a maximum size where each item must match the following example
|
static PactDslJsonArray |
arrayMaxLike(int maxSize,
int numberExamples,
PactDslJsonRootValue value)
Root level array with maximum size where each item must match the provided matcher
|
static PactDslJsonArray |
arrayMaxLike(int maxSize,
PactDslJsonRootValue value)
Root level array with maximum size where each item must match the provided matcher
|
static PactDslJsonBody |
arrayMinLike(int minSize)
Array with a minimum size where each item must match the following example
|
static PactDslJsonBody |
arrayMinLike(int minSize,
int numberExamples)
Array with a minimum size where each item must match the following example
|
static PactDslJsonArray |
arrayMinLike(int minSize,
int numberExamples,
PactDslJsonRootValue value)
Root level array with minimum size where each item must match the provided matcher
|
static PactDslJsonArray |
arrayMinLike(int minSize,
PactDslJsonRootValue value)
Root level array with minimum size where each item must match the provided matcher
|
static PactDslJsonBody |
arrayMinMaxLike(int minSize,
int maxSize)
Array with a minimum and maximum size where each item must match the following example
|
static PactDslJsonBody |
arrayMinMaxLike(int minSize,
int maxSize,
int numberExamples)
Array with a minimum and maximum size where each item must match the following example
|
static PactDslJsonArray |
arrayMinMaxLike(int minSize,
int maxSize,
int numberExamples,
PactDslJsonRootValue value)
Root level array with minimum and maximum size where each item must match the provided matcher
|
static PactDslJsonArray |
arrayMinMaxLike(int minSize,
int maxSize,
PactDslJsonRootValue value)
Root level array with minimum and maximum size where each item must match the provided matcher
|
PactDslJsonArray |
booleanType()
Element that must be a boolean
|
PactDslJsonArray |
booleanType(java.lang.Boolean example)
Element that must be a boolean
|
PactDslJsonArray |
booleanValue(java.lang.Boolean value)
Element that must be the specified value
|
DslPart |
close()
This closes off the object graph build from the DSL in case any close[Object|Array] methods have not been called.
|
DslPart |
closeArray()
Closes the current array
|
DslPart |
closeObject()
Close off the previous object
|
PactDslJsonArray |
date()
Element that must be formatted as an ISO date
|
PactDslJsonArray |
date(java.lang.String format)
Element that must match the provided date format
|
PactDslJsonArray |
date(java.lang.String format,
java.util.Date example)
Element that must match the provided date format
|
PactDslJsonArray |
dateExpression(java.lang.String expression)
Adds a date value formatted as an ISO date with the value generated by the date expression
|
PactDslJsonArray |
dateExpression(java.lang.String expression,
java.lang.String format)
Adds a date value with the value generated by the date expression
|
PactDslJsonArray |
datetimeExpression(java.lang.String expression)
Adds a datetime value formatted as an ISO datetime with the value generated by the expression
|
PactDslJsonArray |
datetimeExpression(java.lang.String expression,
java.lang.String format)
Adds a datetime value with the value generated by the expression
|
PactDslJsonArray |
decimalType()
Element that must be a decimal value
|
PactDslJsonArray |
decimalType(java.math.BigDecimal number)
Element that must be a decimalType value
|
PactDslJsonArray |
decimalType(java.lang.Double number)
Attribute that must be a decimalType value
|
PactDslJsonArray |
eachArrayLike()
Array element where each element of the array is an array and must match the following object
|
PactDslJsonArray |
eachArrayLike(int numberExamples)
Array element where each element of the array is an array and must match the following object
|
PactDslJsonArray |
eachArrayLike(java.lang.String name)
Array field where each element is an array and must match the following object
|
PactDslJsonArray |
eachArrayLike(java.lang.String name,
int numberExamples)
Array field where each element is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMaxLike(java.lang.Integer size)
Array element where each element of the array is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMaxLike(int numberExamples,
java.lang.Integer size)
Array element where each element of the array is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMaxLike(java.lang.String name,
java.lang.Integer size)
Array field where each element is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMaxLike(java.lang.String name,
int numberExamples,
java.lang.Integer size)
Array field where each element is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMinLike(java.lang.Integer size)
Array element where each element of the array is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMinLike(int numberExamples,
java.lang.Integer size)
Array element where each element of the array is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMinLike(java.lang.String name,
java.lang.Integer size)
Array field where each element is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMinLike(java.lang.String name,
int numberExamples,
java.lang.Integer size)
Array field where each element is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMinMaxLike(java.lang.Integer minSize,
java.lang.Integer maxSize)
Array element where each element of the array is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMinMaxLike(int numberExamples,
java.lang.Integer minSize,
java.lang.Integer maxSize)
Array element where each element of the array is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMinMaxLike(java.lang.String name,
java.lang.Integer minSize,
java.lang.Integer maxSize)
Array field where each element is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMinMaxLike(java.lang.String name,
int numberExamples,
java.lang.Integer minSize,
java.lang.Integer maxSize)
Array field where each element is an array and must match the following object
|
PactDslJsonBody |
eachLike()
Element that is an array where each item must match the following example
|
PactDslJsonArray |
eachLike(DslPart object)
Array element where each element of the array must match the provided object
|
PactDslJsonBody |
eachLike(int numberExamples)
Element that is an array where each item must match the following example
|
PactDslJsonArray |
eachLike(PactDslJsonRootValue value)
Array of values that are not objects where each item must match the provided example
|
PactDslJsonArray |
eachLike(PactDslJsonRootValue value,
int numberExamples)
Array of values that are not objects where each item must match the provided example
|
PactDslJsonBody |
eachLike(java.lang.String name)
Array field where each element must match the following object
|
PactDslJsonBody |
eachLike(java.lang.String name,
DslPart object)
Array field where each element must match the following object
|
PactDslJsonBody |
eachLike(java.lang.String name,
int numberExamples)
Array field where each element must match the following object
|
PactDslJsonArray |
equalsTo(java.lang.Object value)
Attribute that must be equal to the provided value.
|
java.lang.Object |
getBody() |
int |
getNumberExamples()
Returns the number of example elements to generate for sample bodies
|
PactDslJsonArray |
hexValue()
Element that must be encoded as a hexadecimal value
|
PactDslJsonArray |
hexValue(java.lang.String hexValue)
Element that must be encoded as a hexadecimal value
|
PactDslJsonArray |
id()
Element that must be a numeric identifier
|
PactDslJsonArray |
id(java.lang.Long id)
Element that must be a numeric identifier
|
PactDslJsonArray |
includesStr(java.lang.String value)
List item that must include the provided string
|
PactDslJsonArray |
integerType()
Element that must be an integer
|
PactDslJsonArray |
integerType(java.lang.Long number)
Element that must be an integer
|
PactDslJsonArray |
ipAddress()
Element that must be an IP4 address
|
PactDslJsonArray |
like(java.lang.Object example)
Element that must be the same type as the example
|
PactDslJsonArray |
matchUrl(java.lang.String basePath,
java.lang.Object... pathFragments)
Matches a URL that is composed of a base path and a sequence of path expressions
|
PactDslJsonBody |
maxArrayLike(java.lang.Integer size)
Element that is an array with a maximum size where each item must match the following example
|
PactDslJsonArray |
maxArrayLike(java.lang.Integer size,
DslPart object)
Array element with a maximum size and each element of the array must match the provided object
|
PactDslJsonBody |
maxArrayLike(java.lang.Integer size,
int numberExamples)
Element that is an array with a maximum size where each item must match the following example
|
PactDslJsonArray |
maxArrayLike(java.lang.Integer size,
PactDslJsonRootValue value)
Array of values with a maximum size that are not objects where each item must match the provided example
|
PactDslJsonArray |
maxArrayLike(java.lang.Integer size,
PactDslJsonRootValue value,
int numberExamples)
Array of values with a maximum size that are not objects where each item must match the provided example
|
PactDslJsonBody |
maxArrayLike(java.lang.String name,
java.lang.Integer size)
Array field with a maximum size and each element must match the following object
|
PactDslJsonBody |
maxArrayLike(java.lang.String name,
java.lang.Integer size,
DslPart object)
Array field with a maximum size and each element must match the provided object
|
PactDslJsonBody |
maxArrayLike(java.lang.String name,
java.lang.Integer size,
int numberExamples)
Array field with a maximum size and each element must match the following object
|
PactDslJsonBody |
minArrayLike(java.lang.Integer size)
Element that is an array with a minimum size where each item must match the following example
|
PactDslJsonArray |
minArrayLike(java.lang.Integer size,
DslPart object)
Array element with a minumum size and each element of the array must match the provided object
|
PactDslJsonBody |
minArrayLike(java.lang.Integer size,
int numberExamples)
Element that is an array with a minimum size where each item must match the following example
|
PactDslJsonArray |
minArrayLike(java.lang.Integer size,
PactDslJsonRootValue value)
Array of values with a minimum size that are not objects where each item must match the provided example
|
PactDslJsonArray |
minArrayLike(java.lang.Integer size,
PactDslJsonRootValue value,
int numberExamples)
Array of values with a minimum size that are not objects where each item must match the provided example
|
PactDslJsonBody |
minArrayLike(java.lang.String name,
java.lang.Integer size)
Array field with a minumum size and each element must match the following object
|
PactDslJsonBody |
minArrayLike(java.lang.String name,
java.lang.Integer size,
DslPart object)
Array field with a minumum size and each element must match the provided object
|
PactDslJsonBody |
minArrayLike(java.lang.String name,
java.lang.Integer size,
int numberExamples)
Array field with a minumum size and each element must match the following object
|
PactDslJsonBody |
minMaxArrayLike(java.lang.Integer minSize,
java.lang.Integer maxSize)
Array element with a minimum and maximum size and each element of the array must match the following object
|
PactDslJsonArray |
minMaxArrayLike(java.lang.Integer minSize,
java.lang.Integer maxSize,
DslPart object)
Array element with a minimum and maximum size and each element of the array must match the provided object
|
PactDslJsonBody |
minMaxArrayLike(java.lang.Integer minSize,
java.lang.Integer maxSize,
int numberExamples)
Array element with a minimum and maximum size and each element of the array must match the following object
|
PactDslJsonBody |
minMaxArrayLike(java.lang.String name,
java.lang.Integer minSize,
java.lang.Integer maxSize)
Array field with a minimum and maximum size and each element must match the following object
|
PactDslJsonBody |
minMaxArrayLike(java.lang.String name,
java.lang.Integer minSize,
java.lang.Integer maxSize,
DslPart object)
Array field with a minimum and maximum size and each element must match the provided object
|
PactDslJsonBody |
minMaxArrayLike(java.lang.String name,
java.lang.Integer minSize,
java.lang.Integer maxSize,
int numberExamples)
Array field with a minimum and maximum size and each element must match the following object
|
PactDslJsonArray |
nullValue()
Adds a null value to the list
|
PactDslJsonArray |
number(java.lang.Number value)
Element that must be the specified value
|
PactDslJsonArray |
numberType()
Element that can be any number
|
PactDslJsonArray |
numberType(java.lang.Number number)
Element that can be any number
|
PactDslJsonArray |
numberValue(java.lang.Number value) |
PactDslJsonBody |
object()
Element that is a JSON object
|
PactDslJsonBody |
object(java.lang.String name)
Object field
|
PactDslJsonArray |
or(java.lang.Object value,
au.com.dius.pact.core.model.matchingrules.MatchingRule... rules)
Combine all the matchers using OR
|
protected void |
putArray(DslPart object) |
protected void |
putObject(DslPart object) |
void |
setNumberExamples(int numberExamples)
Sets the number of example elements to generate for sample bodies
|
PactDslJsonArray |
string(java.lang.String value)
Element that must be the specified value
|
PactDslJsonArray |
stringMatcher(java.lang.String regex,
java.lang.String value)
Element that must match the regular expression
|
PactDslJsonArray |
stringType()
Element that can be any string
|
PactDslJsonArray |
stringType(java.lang.String example)
Element that can be any string
|
PactDslJsonArray |
stringValue(java.lang.String value)
Element that must be the specified value
|
PactDslJsonArray |
template(DslPart template)
Adds the template object to the array
|
PactDslJsonArray |
template(DslPart template,
int occurrences)
Adds a number of template objects to the array
|
PactDslJsonArray |
time()
Element that must be an ISO formatted time
|
PactDslJsonArray |
time(java.lang.String format)
Element that must match the given time format
|
PactDslJsonArray |
time(java.lang.String format,
java.util.Date example)
Element that must match the given time format
|
PactDslJsonArray |
timeExpression(java.lang.String expression)
Adds a time value formatted as an ISO time with the value generated by the time expression
|
PactDslJsonArray |
timeExpression(java.lang.String expression,
java.lang.String format)
Adds a time value with the value generated by the time expression
|
PactDslJsonArray |
timestamp()
Element that must be an ISO formatted timestamp
|
PactDslJsonArray |
timestamp(java.lang.String format)
Element that must match the given timestamp format
|
PactDslJsonArray |
timestamp(java.lang.String format,
java.util.Date example)
Element that must match the given timestamp format
|
PactDslJsonArray |
timestamp(java.lang.String format,
java.time.Instant example)
Element that must match the given timestamp format
|
java.lang.String |
toString() |
PactDslJsonArray |
uuid()
Element that must be encoded as an UUID
|
PactDslJsonArray |
uuid(java.lang.String uuid)
Element that must be encoded as an UUID
|
PactDslJsonArray |
valueFromProviderState(java.lang.String expression,
java.lang.Object example)
Adds an element that will have it's value injected from the provider state
|
asArray, asBody, getGenerators, getMatchers, getParent, includesMatcher, matchDate, matchMax, matchMin, matchMinMax, matchTime, matchTimestamp, regexp, setGenerators, setMatcherspublic PactDslJsonArray()
public PactDslJsonArray(java.lang.String rootPath,
java.lang.String rootName,
DslPart parent)
rootPath - Path to the child arrayrootName - Name to associate the child asparent - Parent to attach the child topublic PactDslJsonArray(java.lang.String rootPath,
java.lang.String rootName,
DslPart parent,
PactDslJsonArray array)
rootPath - Path to the child arrayrootName - Name to associate the child asparent - Parent to attach the child toarray - Array to copypublic PactDslJsonArray(java.lang.String rootPath,
java.lang.String rootName,
DslPart parent,
boolean wildCard)
rootPath - Path to the child arrayrootName - Name to associate the child asparent - Parent to attach the child towildCard - If it should be matched as a wild cardpublic DslPart closeArray()
closeArray in class DslPartpublic PactDslJsonBody eachLike(java.lang.String name)
DslPartpublic PactDslJsonBody eachLike(java.lang.String name, DslPart object)
DslPartpublic PactDslJsonBody eachLike(java.lang.String name, int numberExamples)
DslPartpublic PactDslJsonBody eachLike()
public PactDslJsonArray eachLike(DslPart object)
DslPartpublic PactDslJsonBody eachLike(int numberExamples)
public PactDslJsonBody minArrayLike(java.lang.String name, java.lang.Integer size)
DslPartminArrayLike in class DslPartname - field namesize - minimum sizepublic PactDslJsonBody minArrayLike(java.lang.Integer size)
minArrayLike in class DslPartsize - minimum size of the arraypublic PactDslJsonBody minArrayLike(java.lang.String name, java.lang.Integer size, DslPart object)
DslPartminArrayLike in class DslPartname - field namesize - minimum sizepublic PactDslJsonArray minArrayLike(java.lang.Integer size, DslPart object)
DslPartminArrayLike in class DslPartsize - minimum sizepublic PactDslJsonBody minArrayLike(java.lang.String name, java.lang.Integer size, int numberExamples)
DslPartminArrayLike in class DslPartname - field namesize - minimum sizenumberExamples - number of examples to generatepublic PactDslJsonBody minArrayLike(java.lang.Integer size, int numberExamples)
minArrayLike in class DslPartsize - minimum size of the arraynumberExamples - number of examples to generatepublic PactDslJsonBody maxArrayLike(java.lang.String name, java.lang.Integer size)
DslPartmaxArrayLike in class DslPartname - field namesize - maximum sizepublic PactDslJsonBody maxArrayLike(java.lang.Integer size)
maxArrayLike in class DslPartsize - maximum size of the arraypublic PactDslJsonBody maxArrayLike(java.lang.String name, java.lang.Integer size, DslPart object)
DslPartmaxArrayLike in class DslPartname - field namesize - maximum sizepublic PactDslJsonArray maxArrayLike(java.lang.Integer size, DslPart object)
DslPartmaxArrayLike in class DslPartsize - minimum sizepublic PactDslJsonBody maxArrayLike(java.lang.String name, java.lang.Integer size, int numberExamples)
DslPartmaxArrayLike in class DslPartname - field namesize - maximum sizenumberExamples - number of examples to generatepublic PactDslJsonBody maxArrayLike(java.lang.Integer size, int numberExamples)
maxArrayLike in class DslPartsize - maximum size of the arraynumberExamples - number of examples to generatepublic PactDslJsonArray stringValue(java.lang.String value)
value - string valuepublic PactDslJsonArray string(java.lang.String value)
value - string valuepublic PactDslJsonArray numberValue(java.lang.Number value)
public PactDslJsonArray number(java.lang.Number value)
value - number valuepublic PactDslJsonArray booleanValue(java.lang.Boolean value)
value - boolean valuepublic PactDslJsonArray like(java.lang.Object example)
public PactDslJsonArray stringType()
public PactDslJsonArray stringType(java.lang.String example)
example - example value to use for generated bodiespublic PactDslJsonArray numberType()
public PactDslJsonArray numberType(java.lang.Number number)
number - example number to use for generated bodiespublic PactDslJsonArray integerType()
public PactDslJsonArray integerType(java.lang.Long number)
number - example integer value to use for generated bodiespublic PactDslJsonArray decimalType()
public PactDslJsonArray decimalType(java.math.BigDecimal number)
number - example decimalType valuepublic PactDslJsonArray decimalType(java.lang.Double number)
number - example decimalType valuepublic PactDslJsonArray booleanType()
public PactDslJsonArray booleanType(java.lang.Boolean example)
example - example boolean to use for generated bodiespublic PactDslJsonArray stringMatcher(java.lang.String regex, java.lang.String value)
regex - regular expressionvalue - example value to use for generated bodiespublic PactDslJsonArray timestamp()
public PactDslJsonArray timestamp(java.lang.String format)
format - timestamp formatpublic PactDslJsonArray timestamp(java.lang.String format, java.util.Date example)
format - timestamp formatexample - example date and time to use for generated bodiespublic PactDslJsonArray timestamp(java.lang.String format, java.time.Instant example)
format - timestamp formatexample - example date and time to use for generated bodiespublic PactDslJsonArray date()
public PactDslJsonArray date(java.lang.String format)
format - date format to matchpublic PactDslJsonArray date(java.lang.String format, java.util.Date example)
format - date format to matchexample - example date to use for generated valuespublic PactDslJsonArray time()
public PactDslJsonArray time(java.lang.String format)
format - time format to matchpublic PactDslJsonArray time(java.lang.String format, java.util.Date example)
format - time format to matchexample - example time to use for generated bodiespublic PactDslJsonArray ipAddress()
public PactDslJsonBody object(java.lang.String name)
DslPartpublic PactDslJsonBody object()
public DslPart closeObject()
DslPartcloseObject in class DslPartpublic DslPart close()
DslPartpublic PactDslJsonArray array(java.lang.String name)
DslPartpublic PactDslJsonArray array()
public PactDslJsonArray id()
public PactDslJsonArray id(java.lang.Long id)
id - example id to use for generated bodiespublic PactDslJsonArray hexValue()
public PactDslJsonArray hexValue(java.lang.String hexValue)
hexValue - example value to use for generated bodiespublic PactDslJsonArray uuid()
public PactDslJsonArray uuid(java.lang.String uuid)
uuid - example UUID to use for generated bodiespublic PactDslJsonArray template(DslPart template)
template - template objectpublic PactDslJsonArray template(DslPart template, int occurrences)
template - template objectoccurrences - number to addpublic java.lang.String toString()
toString in class java.lang.Objectpublic static PactDslJsonBody arrayEachLike()
public static PactDslJsonBody arrayEachLike(java.lang.Integer numberExamples)
numberExamples - Number of examples to generatepublic static PactDslJsonArray arrayEachLike(PactDslJsonRootValue rootValue)
public static PactDslJsonArray arrayEachLike(java.lang.Integer numberExamples, PactDslJsonRootValue value)
numberExamples - Number of examples to generatepublic static PactDslJsonBody arrayMinLike(int minSize)
minSize - minimum sizepublic static PactDslJsonBody arrayMinLike(int minSize, int numberExamples)
minSize - minimum sizenumberExamples - Number of examples to generatepublic static PactDslJsonArray arrayMinLike(int minSize, PactDslJsonRootValue value)
minSize - minimum sizepublic static PactDslJsonArray arrayMinLike(int minSize, int numberExamples, PactDslJsonRootValue value)
minSize - minimum sizenumberExamples - Number of examples to generatepublic static PactDslJsonBody arrayMaxLike(int maxSize)
maxSize - maximum sizepublic static PactDslJsonBody arrayMaxLike(int maxSize, int numberExamples)
maxSize - maximum sizenumberExamples - Number of examples to generatepublic static PactDslJsonArray arrayMaxLike(int maxSize, PactDslJsonRootValue value)
maxSize - maximum sizepublic static PactDslJsonArray arrayMaxLike(int maxSize, int numberExamples, PactDslJsonRootValue value)
maxSize - maximum sizenumberExamples - Number of examples to generatepublic static PactDslJsonBody arrayMinMaxLike(int minSize, int maxSize)
minSize - minimum sizemaxSize - maximum sizepublic static PactDslJsonBody arrayMinMaxLike(int minSize, int maxSize, int numberExamples)
minSize - minimum sizemaxSize - maximum sizenumberExamples - Number of examples to generatepublic static PactDslJsonArray arrayMinMaxLike(int minSize, int maxSize, PactDslJsonRootValue value)
minSize - minimum sizemaxSize - maximum sizepublic static PactDslJsonArray arrayMinMaxLike(int minSize, int maxSize, int numberExamples, PactDslJsonRootValue value)
minSize - minimum sizemaxSize - maximum sizenumberExamples - Number of examples to generatepublic PactDslJsonArray nullValue()
public int getNumberExamples()
public void setNumberExamples(int numberExamples)
public PactDslJsonArray eachArrayLike(java.lang.String name)
DslParteachArrayLike in class DslPartname - field namepublic PactDslJsonArray eachArrayLike(java.lang.String name, int numberExamples)
DslParteachArrayLike in class DslPartname - field namenumberExamples - number of examples to generatepublic PactDslJsonArray eachArrayLike()
DslParteachArrayLike in class DslPartpublic PactDslJsonArray eachArrayLike(int numberExamples)
DslParteachArrayLike in class DslPartnumberExamples - number of examples to generatepublic PactDslJsonArray eachArrayWithMaxLike(java.lang.String name, java.lang.Integer size)
DslParteachArrayWithMaxLike in class DslPartname - field namesize - Maximum size of the outer arraypublic PactDslJsonArray eachArrayWithMaxLike(java.lang.String name, int numberExamples, java.lang.Integer size)
DslParteachArrayWithMaxLike in class DslPartname - field namenumberExamples - number of examples to generatesize - Maximum size of the outer arraypublic PactDslJsonArray eachArrayWithMaxLike(java.lang.Integer size)
DslParteachArrayWithMaxLike in class DslPartsize - Maximum size of the outer arraypublic PactDslJsonArray eachArrayWithMaxLike(int numberExamples, java.lang.Integer size)
DslParteachArrayWithMaxLike in class DslPartnumberExamples - number of examples to generatesize - Maximum size of the outer arraypublic PactDslJsonArray eachArrayWithMinLike(java.lang.String name, java.lang.Integer size)
DslParteachArrayWithMinLike in class DslPartname - field namesize - Minimum size of the outer arraypublic PactDslJsonArray eachArrayWithMinLike(java.lang.String name, int numberExamples, java.lang.Integer size)
DslParteachArrayWithMinLike in class DslPartname - field namenumberExamples - number of examples to generatesize - Minimum size of the outer arraypublic PactDslJsonArray eachArrayWithMinLike(java.lang.Integer size)
DslParteachArrayWithMinLike in class DslPartsize - Minimum size of the outer arraypublic PactDslJsonArray eachArrayWithMinLike(int numberExamples, java.lang.Integer size)
DslParteachArrayWithMinLike in class DslPartnumberExamples - number of examples to generatesize - Minimum size of the outer arraypublic PactDslJsonArray eachLike(PactDslJsonRootValue value)
value - Value to use to match each itempublic PactDslJsonArray eachLike(PactDslJsonRootValue value, int numberExamples)
value - Value to use to match each itemnumberExamples - number of examples to generatepublic PactDslJsonArray minArrayLike(java.lang.Integer size, PactDslJsonRootValue value)
size - minimum size of the arrayvalue - Value to use to match each itempublic PactDslJsonArray minArrayLike(java.lang.Integer size, PactDslJsonRootValue value, int numberExamples)
size - minimum size of the arrayvalue - Value to use to match each itemnumberExamples - number of examples to generatepublic PactDslJsonArray maxArrayLike(java.lang.Integer size, PactDslJsonRootValue value)
size - maximum size of the arrayvalue - Value to use to match each itempublic PactDslJsonArray maxArrayLike(java.lang.Integer size, PactDslJsonRootValue value, int numberExamples)
size - maximum size of the arrayvalue - Value to use to match each itemnumberExamples - number of examples to generatepublic PactDslJsonArray includesStr(java.lang.String value)
value - Value that must be includedpublic PactDslJsonArray equalsTo(java.lang.Object value)
value - Value that will be used for comparisonspublic PactDslJsonArray and(java.lang.Object value, au.com.dius.pact.core.model.matchingrules.MatchingRule... rules)
value - Attribute example valuerules - Matching rules to applypublic PactDslJsonArray or(java.lang.Object value, au.com.dius.pact.core.model.matchingrules.MatchingRule... rules)
value - Attribute example valuerules - Matching rules to applypublic PactDslJsonArray matchUrl(java.lang.String basePath, java.lang.Object... pathFragments)
basePath - The base path for the URL (like "http://localhost:8080/") which will be excluded from the matchingpathFragments - Series of path fragments to match on. These can be strings or regular expressions.public PactDslJsonBody minMaxArrayLike(java.lang.String name, java.lang.Integer minSize, java.lang.Integer maxSize)
DslPartminMaxArrayLike in class DslPartname - field nameminSize - minimum sizemaxSize - maximum sizepublic PactDslJsonBody minMaxArrayLike(java.lang.String name, java.lang.Integer minSize, java.lang.Integer maxSize, DslPart object)
DslPartminMaxArrayLike in class DslPartname - field nameminSize - minimum sizemaxSize - maximum sizepublic PactDslJsonBody minMaxArrayLike(java.lang.Integer minSize, java.lang.Integer maxSize)
DslPartminMaxArrayLike in class DslPartminSize - minimum sizemaxSize - maximum sizepublic PactDslJsonArray minMaxArrayLike(java.lang.Integer minSize, java.lang.Integer maxSize, DslPart object)
DslPartminMaxArrayLike in class DslPartminSize - minimum sizemaxSize - maximum sizepublic PactDslJsonBody minMaxArrayLike(java.lang.String name, java.lang.Integer minSize, java.lang.Integer maxSize, int numberExamples)
DslPartminMaxArrayLike in class DslPartname - field nameminSize - minimum sizemaxSize - maximum sizenumberExamples - number of examples to generatepublic PactDslJsonBody minMaxArrayLike(java.lang.Integer minSize, java.lang.Integer maxSize, int numberExamples)
DslPartminMaxArrayLike in class DslPartminSize - minimum sizemaxSize - maximum sizenumberExamples - number of examples to generatepublic PactDslJsonArray eachArrayWithMinMaxLike(java.lang.String name, java.lang.Integer minSize, java.lang.Integer maxSize)
DslParteachArrayWithMinMaxLike in class DslPartname - field nameminSize - minimum sizemaxSize - maximum sizepublic PactDslJsonArray eachArrayWithMinMaxLike(java.lang.Integer minSize, java.lang.Integer maxSize)
DslParteachArrayWithMinMaxLike in class DslPartminSize - minimum sizemaxSize - maximum sizepublic PactDslJsonArray eachArrayWithMinMaxLike(java.lang.String name, int numberExamples, java.lang.Integer minSize, java.lang.Integer maxSize)
DslParteachArrayWithMinMaxLike in class DslPartname - field namenumberExamples - number of examples to generateminSize - minimum sizemaxSize - maximum sizepublic PactDslJsonArray eachArrayWithMinMaxLike(int numberExamples, java.lang.Integer minSize, java.lang.Integer maxSize)
DslParteachArrayWithMinMaxLike in class DslPartnumberExamples - number of examples to generateminSize - minimum sizemaxSize - maximum sizepublic PactDslJsonArray valueFromProviderState(java.lang.String expression, java.lang.Object example)
expression - Expression to be evaluated from the provider stateexample - Example value to be used in the consumer testpublic PactDslJsonArray dateExpression(java.lang.String expression)
expression - Date expression to use to generate the valuespublic PactDslJsonArray dateExpression(java.lang.String expression, java.lang.String format)
expression - Date expression to use to generate the valuesformat - Date format to usepublic PactDslJsonArray timeExpression(java.lang.String expression)
expression - Time expression to use to generate the valuespublic PactDslJsonArray timeExpression(java.lang.String expression, java.lang.String format)
expression - Time expression to use to generate the valuesformat - Time format to usepublic PactDslJsonArray datetimeExpression(java.lang.String expression)
expression - Datetime expression to use to generate the valuespublic PactDslJsonArray datetimeExpression(java.lang.String expression, java.lang.String format)
expression - Datetime expression to use to generate the valuesformat - Datetime format to use