public class PactDslJsonArray
extends DslPart
DSL to define a JSON array
DATE_2000, HEXADECIMAL, IP_ADDRESS, UUID_REGEX, closed, generators, matchers, parent, rootName, rootPath| Constructor and Description |
|---|
PactDslJsonArray()
Construct a root level array
|
PactDslJsonArray()
Construct an array as a child
|
PactDslJsonArray()
Construct an array as a child copied from an existing array
|
PactDslJsonArray()
Construct a array as a child
|
| Modifier and Type | Method and Description |
|---|---|
PactDslJsonArray |
and()
Combine all the matchers using AND
|
PactDslJsonArray |
array() |
PactDslJsonArray |
array()
Element that is a JSON array
|
static PactDslJsonBody |
arrayEachLike()
Array where each item must match the following example
|
static PactDslJsonBody |
arrayEachLike()
Array where each item must match the following example
|
static PactDslJsonArray |
arrayEachLike()
Root level array where each item must match the provided matcher
|
static PactDslJsonArray |
arrayEachLike()
Root level array where each item must match the provided matcher
|
PactDslJsonBody |
arrayLike() |
PactDslJsonBody |
arrayLike()
Element that is an array where each item must match the following example
|
static PactDslJsonBody |
arrayMaxLike()
Array with a maximum size where each item must match the following example
|
static PactDslJsonBody |
arrayMaxLike()
Array with a maximum size where each item must match the following example
|
static PactDslJsonArray |
arrayMaxLike()
Root level array with maximum size where each item must match the provided matcher
|
static PactDslJsonArray |
arrayMaxLike()
Root level array with maximum size where each item must match the provided matcher
|
static PactDslJsonBody |
arrayMinLike()
Array with a minimum size where each item must match the following example
|
static PactDslJsonBody |
arrayMinLike()
Array with a minimum size where each item must match the following example
|
static PactDslJsonArray |
arrayMinLike()
Root level array with minimum size where each item must match the provided matcher
|
static PactDslJsonArray |
arrayMinLike()
Root level array with minimum size where each item must match the provided matcher
|
static PactDslJsonBody |
arrayMinMaxLike()
Array with a minimum and maximum size where each item must match the following example
|
static PactDslJsonBody |
arrayMinMaxLike()
Array with a minimum and maximum size where each item must match the following example
|
static PactDslJsonArray |
arrayMinMaxLike()
Root level array with minimum and maximum size where each item must match the provided matcher
|
static PactDslJsonArray |
arrayMinMaxLike()
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()
Element that must be a boolean
|
PactDslJsonArray |
booleanValue()
Element that must be the specified value
|
DslPart |
close() |
DslPart |
closeArray()
Closes the current array
|
DslPart |
closeObject() |
PactDslJsonArray |
date()
Element that must be formatted as an ISO date
|
PactDslJsonArray |
date()
Element that must match the provided date format
|
PactDslJsonArray |
date()
Element that must match the provided date format
|
PactDslJsonArray |
dateExpression()
Adds a date value formatted as an ISO date with the value generated by the date expression
|
PactDslJsonArray |
dateExpression()
Adds a date value with the value generated by the date expression
|
PactDslJsonArray |
datetimeExpression()
Adds a datetime value formatted as an ISO datetime with the value generated by the expression
|
PactDslJsonArray |
datetimeExpression()
Adds a datetime value with the value generated by the expression
|
PactDslJsonArray |
decimalType()
Element that must be a decimal value
|
PactDslJsonArray |
decimalType()
Element that must be a decimalType value
|
PactDslJsonArray |
decimalType()
Attribute that must be a decimalType value
|
PactDslJsonArray |
eachArrayLike() |
PactDslJsonArray |
eachArrayLike() |
PactDslJsonArray |
eachArrayLike() |
PactDslJsonArray |
eachArrayLike() |
PactDslJsonArray |
eachArrayWithMaxLike() |
PactDslJsonArray |
eachArrayWithMaxLike() |
PactDslJsonArray |
eachArrayWithMaxLike() |
PactDslJsonArray |
eachArrayWithMaxLike() |
PactDslJsonArray |
eachArrayWithMinLike() |
PactDslJsonArray |
eachArrayWithMinLike() |
PactDslJsonArray |
eachArrayWithMinLike() |
PactDslJsonArray |
eachArrayWithMinLike() |
PactDslJsonArray |
eachArrayWithMinMaxLike() |
PactDslJsonArray |
eachArrayWithMinMaxLike() |
PactDslJsonArray |
eachArrayWithMinMaxLike() |
PactDslJsonArray |
eachArrayWithMinMaxLike() |
PactDslJsonBody |
eachLike() |
PactDslJsonBody |
eachLike() |
PactDslJsonBody |
eachLike()
Element that is an array where each item must match the following example
|
PactDslJsonBody |
eachLike()
Element that is an array where each item must match the following example
|
PactDslJsonArray |
eachLike()
Array of values that are not objects where each item must match the provided example
|
PactDslJsonArray |
eachLike()
Array of values that are not objects where each item must match the provided example
|
PactDslJsonArray |
equalsTo()
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 |
guid()
Element that must be encoded as a GUID
|
PactDslJsonArray |
guid()
Element that must be encoded as a GUID
|
PactDslJsonArray |
hexValue()
Element that must be encoded as a hexadecimal value
|
PactDslJsonArray |
hexValue()
Element that must be encoded as a hexadecimal value
|
PactDslJsonArray |
id()
Element that must be a numeric identifier
|
PactDslJsonArray |
id()
Element that must be a numeric identifier
|
PactDslJsonArray |
includesStr()
List item that must include the provided string
|
PactDslJsonArray |
integerType()
Element that must be an integer
|
PactDslJsonArray |
integerType()
Element that must be an integer
|
PactDslJsonArray |
ipAddress()
Element that must be an IP4 address
|
PactDslJsonArray |
matchUrl()
Matches a URL that is composed of a base path and a sequence of path expressions
|
PactDslJsonBody |
maxArrayLike() |
PactDslJsonBody |
maxArrayLike()
Element that is an array with a maximum size where each item must match the following example
|
PactDslJsonBody |
maxArrayLike() |
PactDslJsonBody |
maxArrayLike()
Element that is an array with a maximum size where each item must match the following example
|
PactDslJsonArray |
maxArrayLike()
Array of values with a maximum size that are not objects where each item must match the provided example
|
PactDslJsonArray |
maxArrayLike()
Array of values with a maximum size that are not objects where each item must match the provided example
|
PactDslJsonBody |
minArrayLike() |
PactDslJsonBody |
minArrayLike()
Element that is an array with a minimum size where each item must match the following example
|
PactDslJsonBody |
minArrayLike() |
PactDslJsonBody |
minArrayLike()
Element that is an array with a minimum size where each item must match the following example
|
PactDslJsonArray |
minArrayLike()
Array of values with a minimum size that are not objects where each item must match the provided example
|
PactDslJsonArray |
minArrayLike()
Array of values with a minimum size that are not objects where each item must match the provided example
|
PactDslJsonBody |
minMaxArrayLike() |
PactDslJsonBody |
minMaxArrayLike() |
PactDslJsonBody |
minMaxArrayLike() |
PactDslJsonBody |
minMaxArrayLike() |
PactDslJsonArray |
nullValue()
Adds a null value to the list
|
PactDslJsonArray |
number()
Element that must be the specified value
|
PactDslJsonArray |
numberType()
Element that can be any number
|
PactDslJsonArray |
numberType()
Element that can be any number
|
PactDslJsonArray |
numberValue() |
PactDslJsonBody |
object() |
PactDslJsonBody |
object()
Element that is a JSON object
|
PactDslJsonArray |
or()
Combine all the matchers using OR
|
void |
putArray() |
void |
putObject() |
PactDslJsonArray |
realType()
Element that must be a real value
|
PactDslJsonArray |
realType()
Element that must be a real value
|
void |
setNumberExamples()
Sets the number of example elements to generate for sample bodies
|
PactDslJsonArray |
string()
Element that must be the specified value
|
PactDslJsonArray |
stringMatcher()
Element that must match the regular expression
|
PactDslJsonArray |
stringMatcher()
Element that must match the regular expression
|
PactDslJsonArray |
stringType()
Element that can be any string
|
PactDslJsonArray |
stringType()
Element that can be any string
|
PactDslJsonArray |
stringValue()
Element that must be the specified value
|
PactDslJsonArray |
template()
Adds the template object to the array
|
PactDslJsonArray |
template()
Adds a number of template objects to the array
|
PactDslJsonArray |
time()
Element that must be an ISO formatted time
|
PactDslJsonArray |
time()
Element that must match the given time format
|
PactDslJsonArray |
time()
Element that must match the given time format
|
PactDslJsonArray |
timeExpression()
Adds a time value formatted as an ISO time with the value generated by the time expression
|
PactDslJsonArray |
timeExpression()
Adds a time value with the value generated by the time expression
|
PactDslJsonArray |
timestamp()
Element that must be an ISO formatted timestamp
|
PactDslJsonArray |
timestamp()
Element that must match the given timestamp format
|
PactDslJsonArray |
timestamp()
Element that must match the given timestamp format
|
PactDslJsonArray |
timestamp()
Element that must match the given timestamp format
|
java.lang.String |
toString() |
PactDslJsonArray |
uuid()
Element that must be encoded as an UUID
|
PactDslJsonArray |
uuid()
Element that must be encoded as an UUID
|
PactDslJsonArray |
valueFromProviderState()
Adds an element 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 PactDslJsonArray()
Construct a root level array
public PactDslJsonArray()
Construct an array as a child
public PactDslJsonArray()
Construct an array as a child copied from an existing array
public PactDslJsonArray()
Construct a array as a child
public DslPart closeArray()
Closes the current array
public PactDslJsonBody arrayLike()
public PactDslJsonBody arrayLike()
Element that is an array where each item must match the following example
public PactDslJsonBody eachLike()
public PactDslJsonBody eachLike()
public PactDslJsonBody eachLike()
Element that is an array where each item must match the following example
public PactDslJsonBody eachLike()
Element that is an array where each item must match the following example
public PactDslJsonBody minArrayLike()
public PactDslJsonBody minArrayLike()
Element that is an array with a minimum size where each item must match the following example
public PactDslJsonBody minArrayLike()
public PactDslJsonBody minArrayLike()
Element that is an array with a minimum size where each item must match the following example
public PactDslJsonBody maxArrayLike()
public PactDslJsonBody maxArrayLike()
Element that is an array with a maximum size where each item must match the following example
public PactDslJsonBody maxArrayLike()
public PactDslJsonBody maxArrayLike()
Element that is an array with a maximum size where each item must match the following example
public void putObject()
public void putArray()
public java.lang.Object getBody()
public PactDslJsonArray stringValue()
Element that must be the specified value
public PactDslJsonArray string()
Element that must be the specified value
public PactDslJsonArray numberValue()
public PactDslJsonArray number()
Element that must be the specified value
public PactDslJsonArray booleanValue()
Element that must be the specified value
public PactDslJsonArray stringType()
Element that can be any string
public PactDslJsonArray stringType()
Element that can be any string
public PactDslJsonArray numberType()
Element that can be any number
public PactDslJsonArray numberType()
Element that can be any number
public PactDslJsonArray integerType()
Element that must be an integer
public PactDslJsonArray integerType()
Element that must be an integer
public PactDslJsonArray realType()
Element that must be a real value
public PactDslJsonArray realType()
Element that must be a real value
public PactDslJsonArray decimalType()
Element that must be a decimal value
public PactDslJsonArray decimalType()
Element that must be a decimalType value
public PactDslJsonArray decimalType()
Attribute that must be a decimalType value
public PactDslJsonArray booleanType()
Element that must be a boolean
public PactDslJsonArray booleanType()
Element that must be a boolean
public PactDslJsonArray stringMatcher()
Element that must match the regular expression
public PactDslJsonArray stringMatcher()
Element that must match the regular expression
public PactDslJsonArray timestamp()
Element that must be an ISO formatted timestamp
public PactDslJsonArray timestamp()
Element that must match the given timestamp format
public PactDslJsonArray timestamp()
Element that must match the given timestamp format
public PactDslJsonArray timestamp()
Element that must match the given timestamp format
public PactDslJsonArray date()
Element that must be formatted as an ISO date
public PactDslJsonArray date()
Element that must match the provided date format
public PactDslJsonArray date()
Element that must match the provided date format
public PactDslJsonArray time()
Element that must be an ISO formatted time
public PactDslJsonArray time()
Element that must match the given time format
public PactDslJsonArray time()
Element that must match the given time format
public PactDslJsonArray ipAddress()
Element that must be an IP4 address
public PactDslJsonBody object()
public PactDslJsonBody object()
Element that is a JSON object
public DslPart closeObject()
public DslPart close()
public PactDslJsonArray array()
public PactDslJsonArray array()
Element that is a JSON array
public PactDslJsonArray id()
Element that must be a numeric identifier
public PactDslJsonArray id()
Element that must be a numeric identifier
public PactDslJsonArray hexValue()
Element that must be encoded as a hexadecimal value
public PactDslJsonArray hexValue()
Element that must be encoded as a hexadecimal value
public PactDslJsonArray guid()
Element that must be encoded as a GUID
public PactDslJsonArray guid()
Element that must be encoded as a GUID
public PactDslJsonArray uuid()
Element that must be encoded as an UUID
public PactDslJsonArray uuid()
Element that must be encoded as an UUID
public PactDslJsonArray template()
Adds the template object to the array
public PactDslJsonArray template()
Adds a number of template objects to the array
public java.lang.String toString()
public static PactDslJsonBody arrayEachLike()
Array where each item must match the following example
public static PactDslJsonBody arrayEachLike()
Array where each item must match the following example
public static PactDslJsonArray arrayEachLike()
Root level array where each item must match the provided matcher
public static PactDslJsonArray arrayEachLike()
Root level array where each item must match the provided matcher
public static PactDslJsonBody arrayMinLike()
Array with a minimum size where each item must match the following example
public static PactDslJsonBody arrayMinLike()
Array with a minimum size where each item must match the following example
public static PactDslJsonArray arrayMinLike()
Root level array with minimum size where each item must match the provided matcher
public static PactDslJsonArray arrayMinLike()
Root level array with minimum size where each item must match the provided matcher
public static PactDslJsonBody arrayMaxLike()
Array with a maximum size where each item must match the following example
public static PactDslJsonBody arrayMaxLike()
Array with a maximum size where each item must match the following example
public static PactDslJsonArray arrayMaxLike()
Root level array with maximum size where each item must match the provided matcher
public static PactDslJsonArray arrayMaxLike()
Root level array with maximum size where each item must match the provided matcher
public static PactDslJsonBody arrayMinMaxLike()
Array with a minimum and maximum size where each item must match the following example
public static PactDslJsonBody arrayMinMaxLike()
Array with a minimum and maximum size where each item must match the following example
public static PactDslJsonArray arrayMinMaxLike()
Root level array with minimum and maximum size where each item must match the provided matcher
public static PactDslJsonArray arrayMinMaxLike()
Root level array with minimum and maximum size where each item must match the provided matcher
public PactDslJsonArray nullValue()
Adds a null value to the list
public int getNumberExamples()
Returns the number of example elements to generate for sample bodies
public void setNumberExamples()
Sets the number of example elements to generate for sample bodies
public PactDslJsonArray eachArrayLike()
public PactDslJsonArray eachArrayLike()
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 eachLike()
Array of values that are not objects where each item must match the provided example
public PactDslJsonArray eachLike()
Array of values that are not objects where each item must match the provided example
public PactDslJsonArray minArrayLike()
Array of values with a minimum size that are not objects where each item must match the provided example
public PactDslJsonArray minArrayLike()
Array of values with a minimum size that are not objects where each item must match the provided example
public PactDslJsonArray maxArrayLike()
Array of values with a maximum size that are not objects where each item must match the provided example
public PactDslJsonArray maxArrayLike()
Array of values with a maximum size that are not objects where each item must match the provided example
public PactDslJsonArray includesStr()
List item that must include the provided string
public PactDslJsonArray equalsTo()
Attribute that must be equal to the provided value.
public PactDslJsonArray and()
Combine all the matchers using AND
public PactDslJsonArray or()
Combine all the matchers using OR
public PactDslJsonArray matchUrl()
Matches a URL that is composed of a base path and a sequence of path expressions
public PactDslJsonBody minMaxArrayLike()
public PactDslJsonBody minMaxArrayLike()
public PactDslJsonBody minMaxArrayLike()
public PactDslJsonBody minMaxArrayLike()
public PactDslJsonArray eachArrayWithMinMaxLike()
public PactDslJsonArray eachArrayWithMinMaxLike()
public PactDslJsonArray eachArrayWithMinMaxLike()
public PactDslJsonArray eachArrayWithMinMaxLike()
public PactDslJsonArray valueFromProviderState()
Adds an element that will have it's value injected from the provider state
public PactDslJsonArray dateExpression()
Adds a date value formatted as an ISO date with the value generated by the date expression
public PactDslJsonArray dateExpression()
Adds a date value with the value generated by the date expression
public PactDslJsonArray timeExpression()
Adds a time value formatted as an ISO time with the value generated by the time expression
public PactDslJsonArray timeExpression()
Adds a time value with the value generated by the time expression
public PactDslJsonArray datetimeExpression()
Adds a datetime value formatted as an ISO datetime with the value generated by the expression
public PactDslJsonArray datetimeExpression()
Adds a datetime value with the value generated by the expression