public class LambdaDslJsonArray
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
LambdaDslJsonArray |
and(java.lang.Object value,
au.com.dius.pact.core.model.matchingrules.MatchingRule... rules)
Combine all the matchers using AND
|
LambdaDslJsonArray |
array(java.util.function.Consumer<LambdaDslJsonArray> a)
Element that is a JSON array
|
LambdaDslJsonArray |
booleanType(java.lang.Boolean example)
Element that must be a boolean
|
LambdaDslJsonArray |
booleanValue(java.lang.Boolean value)
Element that must be the specified value
|
au.com.dius.pact.consumer.dsl.DslPart |
build() |
LambdaDslJsonArray |
date()
Element that must be formatted as an ISO date
|
LambdaDslJsonArray |
date(java.lang.String format)
Element that must match the provided date format
|
LambdaDslJsonArray |
date(java.lang.String format,
java.util.Date example)
Element that must match the provided date format
|
LambdaDslJsonArray |
dateExpression(java.lang.String expression)
Date value generated from the provided expression.
|
LambdaDslJsonArray |
dateExpression(java.lang.String expression,
java.lang.String format)
Date value generated from the provided expression
|
LambdaDslJsonArray |
datetimeExpression(java.lang.String expression)
Datetime generated from the provided expression.
|
LambdaDslJsonArray |
datetimeExpression(java.lang.String expression,
java.lang.String format)
Datetime generated from the provided expression
|
LambdaDslJsonArray |
decimalType()
Element that must be a decimal value
|
LambdaDslJsonArray |
decimalType(java.math.BigDecimal example)
Element that must be a decimalType value
|
LambdaDslJsonArray |
decimalType(java.lang.Double example)
Attribute that must be a decimalType value
|
LambdaDslJsonArray |
eachArrayLike(java.util.function.Consumer<LambdaDslJsonArray> nestedArray)
Array element where each element of the array is an array and must match the following object
|
LambdaDslJsonArray |
eachArrayLike(int numberExamples,
java.util.function.Consumer<LambdaDslJsonArray> nestedArray)
Array element where each element of the array is an array and must match the following object
|
LambdaDslJsonArray |
eachArrayWithMaxLike(java.lang.Integer size,
java.util.function.Consumer<LambdaDslJsonArray> nestedArray)
Array element where each element of the array is an array and must match the following object.
|
LambdaDslJsonArray |
eachArrayWithMaxLike(int numberExamples,
java.lang.Integer size,
java.util.function.Consumer<LambdaDslJsonArray> nestedArray)
Array element where each element of the array is an array and must match the following object
|
LambdaDslJsonArray |
eachArrayWithMinLike(java.lang.Integer size,
java.util.function.Consumer<LambdaDslJsonArray> nestedArray)
Array element where each element of the array is an array and must match the following object.
|
LambdaDslJsonArray |
eachArrayWithMinLike(int numberExamples,
java.lang.Integer size,
java.util.function.Consumer<LambdaDslJsonArray> nestedArray)
Array element where each element of the array is an array and must match the following object
|
LambdaDslJsonArray |
eachArrayWithMinMaxLike(java.lang.Integer minSize,
java.lang.Integer maxSize,
java.util.function.Consumer<LambdaDslJsonArray> nestedArray)
Array element where each element of the array is an array and must match the following object.
|
LambdaDslJsonArray |
eachArrayWithMinMaxLike(java.lang.Integer minSize,
java.lang.Integer maxSize,
int numberExamples,
java.util.function.Consumer<LambdaDslJsonArray> nestedArray)
Array element where each element of the array is an array and must match the following object
|
LambdaDslJsonArray |
eachLike(java.util.function.Consumer<LambdaDslJsonBody> nestedObject)
Element that is an array where each item must match the following example
|
LambdaDslJsonArray |
eachLike(int numberExamples,
java.util.function.Consumer<LambdaDslJsonBody> nestedObject)
Element that is an array where each item must match the following example
|
LambdaDslJsonArray |
eachLike(au.com.dius.pact.consumer.dsl.PactDslJsonRootValue value)
Element that is an array where each item must match the following example
|
LambdaDslJsonArray |
eachLike(au.com.dius.pact.consumer.dsl.PactDslJsonRootValue value,
int numberExamples)
Element that is an array where each item must match the following example
|
au.com.dius.pact.consumer.dsl.PactDslJsonArray |
getPactDslJsonArray()
Get the raw
PactDslJsonArray which is abstracted with PactDslJsonArray |
LambdaDslJsonArray |
hexValue()
Element that must be encoded as a hexadecimal value
|
LambdaDslJsonArray |
hexValue(java.lang.String example)
Element that must be encoded as a hexadecimal value
|
LambdaDslJsonArray |
id()
Element that must be a numeric identifier
|
LambdaDslJsonArray |
id(java.lang.Long example)
Element that must be a numeric identifier
|
LambdaDslJsonArray |
integerType()
Element that must be an integer
|
LambdaDslJsonArray |
integerType(java.lang.Long example)
Element that must be an integer
|
LambdaDslJsonArray |
ipV4Address()
Element that must be an IP4 address
|
LambdaDslJsonArray |
maxArrayLike(java.lang.Integer size,
java.util.function.Consumer<LambdaDslJsonBody> nestedObject)
Element that is an array with a maximum size where each item must match the following example
|
LambdaDslJsonArray |
maxArrayLike(java.lang.Integer size,
int numberExamples,
java.util.function.Consumer<LambdaDslJsonBody> nestedObject)
Element that is an array with a maximum size where each item must match the following example
|
LambdaDslJsonArray |
minArrayLike(java.lang.Integer size,
java.util.function.Consumer<LambdaDslJsonBody> nestedObject)
Element that is an array with a minimum size where each item must match the following example
|
LambdaDslJsonArray |
minArrayLike(java.lang.Integer size,
int numberExamples,
java.util.function.Consumer<LambdaDslJsonBody> nestedObject)
Element that is an array with a minimum size where each item must match the following example
|
LambdaDslJsonArray |
minMaxArrayLike(java.lang.Integer minSize,
java.lang.Integer maxSize,
java.util.function.Consumer<LambdaDslJsonBody> nestedObject)
Element that is an array with a minimum and maximum size where each item must match the following example
|
LambdaDslJsonArray |
minMaxArrayLike(java.lang.Integer minSize,
java.lang.Integer maxSize,
int numberExamples,
java.util.function.Consumer<LambdaDslJsonBody> nestedObject)
Element that is an array with a minimum and maximum size where each item must match the following example
|
LambdaDslJsonArray |
nullValue()
Adds a null value to the list
|
LambdaDslJsonArray |
numberType(java.lang.Number example)
Element that can be any number
|
LambdaDslJsonArray |
numberValue(java.lang.Number value)
Element that must be the specified number
|
LambdaDslJsonArray |
object(java.util.function.Consumer<LambdaDslObject> o)
Element that is a JSON object
|
LambdaDslJsonArray |
or(java.lang.Object value,
au.com.dius.pact.core.model.matchingrules.MatchingRule... rules)
Combine all the matchers using OR
|
LambdaDslJsonArray |
stringMatcher(java.lang.String regex,
java.lang.String example)
Element that must match the regular expression
|
LambdaDslJsonArray |
stringType(java.lang.String example)
Element that can be any string
|
LambdaDslJsonArray |
stringValue(java.lang.String value)
Element that must be the specified value
|
LambdaDslJsonArray |
time()
Element that must be an ISO formatted time
|
LambdaDslJsonArray |
time(java.lang.String format)
Element that must match the given time format
|
LambdaDslJsonArray |
time(java.lang.String format,
java.util.Date example)
Element that must match the given time format
|
LambdaDslJsonArray |
timeExpression(java.lang.String expression)
Time value generated from the provided expression.
|
LambdaDslJsonArray |
timeExpression(java.lang.String expression,
java.lang.String format)
Time value generated from the provided expression
|
LambdaDslJsonArray |
timestamp()
Element that must be an ISO formatted timestamp
|
LambdaDslJsonArray |
timestamp(java.lang.String format)
Element that must match the given timestamp format
|
LambdaDslJsonArray |
timestamp(java.lang.String format,
java.util.Date example)
Element that must match the given timestamp format
|
LambdaDslJsonArray |
timestamp(java.lang.String format,
java.time.Instant example)
Element that must match the given timestamp format
|
LambdaDslJsonArray |
uuid()
Element that must be encoded as an UUID
|
LambdaDslJsonArray |
uuid(java.lang.String example)
Element that must be encoded as an UUID
|
public au.com.dius.pact.consumer.dsl.PactDslJsonArray getPactDslJsonArray()
PactDslJsonArray which is abstracted with PactDslJsonArraypublic LambdaDslJsonArray object(java.util.function.Consumer<LambdaDslObject> o)
public LambdaDslJsonArray array(java.util.function.Consumer<LambdaDslJsonArray> a)
public LambdaDslJsonArray stringValue(java.lang.String value)
value - string valuepublic LambdaDslJsonArray stringType(java.lang.String example)
example - example value to use for generated bodiespublic LambdaDslJsonArray stringMatcher(java.lang.String regex, java.lang.String example)
regex - regular expressionexample - example value to use for generated bodiespublic LambdaDslJsonArray numberValue(java.lang.Number value)
value - number valuepublic LambdaDslJsonArray numberType(java.lang.Number example)
example - example number to use for generated bodiespublic LambdaDslJsonArray integerType()
public LambdaDslJsonArray integerType(java.lang.Long example)
example - example integer value to use for generated bodiespublic LambdaDslJsonArray decimalType()
public LambdaDslJsonArray decimalType(java.math.BigDecimal example)
example - example decimalType valuepublic LambdaDslJsonArray decimalType(java.lang.Double example)
example - example decimalType valuepublic LambdaDslJsonArray booleanValue(java.lang.Boolean value)
value - boolean valuepublic LambdaDslJsonArray booleanType(java.lang.Boolean example)
example - example boolean to use for generated bodiespublic LambdaDslJsonArray date()
public LambdaDslJsonArray date(java.lang.String format)
format - date format to matchpublic LambdaDslJsonArray date(java.lang.String format, java.util.Date example)
format - date format to matchexample - example date to use for generated valuespublic LambdaDslJsonArray time()
public LambdaDslJsonArray time(java.lang.String format)
format - time format to matchpublic LambdaDslJsonArray time(java.lang.String format, java.util.Date example)
format - time format to matchexample - example time to use for generated bodiespublic LambdaDslJsonArray timestamp()
public LambdaDslJsonArray timestamp(java.lang.String format)
format - timestamp formatpublic LambdaDslJsonArray timestamp(java.lang.String format, java.util.Date example)
format - timestamp formatexample - example date and time to use for generated bodiespublic LambdaDslJsonArray timestamp(java.lang.String format, java.time.Instant example)
format - timestamp formatexample - example date and time to use for generated bodiespublic LambdaDslJsonArray id()
public LambdaDslJsonArray id(java.lang.Long example)
example - example id to use for generated bodiespublic LambdaDslJsonArray uuid()
public LambdaDslJsonArray uuid(java.lang.String example)
example - example UUID to use for generated bodiespublic LambdaDslJsonArray hexValue()
public LambdaDslJsonArray hexValue(java.lang.String example)
example - example value to use for generated bodiespublic LambdaDslJsonArray ipV4Address()
public LambdaDslJsonArray and(java.lang.Object value, au.com.dius.pact.core.model.matchingrules.MatchingRule... rules)
value - Attribute example valuerules - Matching rules to applypublic LambdaDslJsonArray or(java.lang.Object value, au.com.dius.pact.core.model.matchingrules.MatchingRule... rules)
value - Attribute example valuerules - Matching rules to applypublic LambdaDslJsonArray eachLike(java.util.function.Consumer<LambdaDslJsonBody> nestedObject)
public LambdaDslJsonArray eachLike(au.com.dius.pact.consumer.dsl.PactDslJsonRootValue value)
value - Value that each item in the array must matchpublic LambdaDslJsonArray eachLike(au.com.dius.pact.consumer.dsl.PactDslJsonRootValue value, int numberExamples)
value - Value that each item in the array must matchnumberExamples - Number of examples to generatepublic LambdaDslJsonArray eachLike(int numberExamples, java.util.function.Consumer<LambdaDslJsonBody> nestedObject)
numberExamples - Number of examples to generatepublic LambdaDslJsonArray minArrayLike(java.lang.Integer size, java.util.function.Consumer<LambdaDslJsonBody> nestedObject)
size - minimum size of the arraypublic LambdaDslJsonArray minArrayLike(java.lang.Integer size, int numberExamples, java.util.function.Consumer<LambdaDslJsonBody> nestedObject)
size - minimum size of the arraynumberExamples - number of examples to generatepublic LambdaDslJsonArray maxArrayLike(java.lang.Integer size, java.util.function.Consumer<LambdaDslJsonBody> nestedObject)
size - maximum size of the arraypublic LambdaDslJsonArray maxArrayLike(java.lang.Integer size, int numberExamples, java.util.function.Consumer<LambdaDslJsonBody> nestedObject)
size - maximum size of the arraynumberExamples - number of examples to generatepublic LambdaDslJsonArray minMaxArrayLike(java.lang.Integer minSize, java.lang.Integer maxSize, java.util.function.Consumer<LambdaDslJsonBody> nestedObject)
minSize - minimum size of the arraymaxSize - maximum size of the arraypublic LambdaDslJsonArray minMaxArrayLike(java.lang.Integer minSize, java.lang.Integer maxSize, int numberExamples, java.util.function.Consumer<LambdaDslJsonBody> nestedObject)
minSize - minimum size of the arraymaxSize - maximum size of the arraynumberExamples - number of examples to generatepublic LambdaDslJsonArray nullValue()
public LambdaDslJsonArray eachArrayLike(java.util.function.Consumer<LambdaDslJsonArray> nestedArray)
public LambdaDslJsonArray eachArrayLike(int numberExamples, java.util.function.Consumer<LambdaDslJsonArray> nestedArray)
numberExamples - number of examples to generatepublic LambdaDslJsonArray eachArrayWithMaxLike(java.lang.Integer size, java.util.function.Consumer<LambdaDslJsonArray> nestedArray)
eachArrayWithMaxLike(int, Integer, Consumer)size - Maximum size of the outer arraypublic LambdaDslJsonArray eachArrayWithMaxLike(int numberExamples, java.lang.Integer size, java.util.function.Consumer<LambdaDslJsonArray> nestedArray)
numberExamples - number of examples to generatesize - Maximum size of the outer arraypublic LambdaDslJsonArray eachArrayWithMinLike(java.lang.Integer size, java.util.function.Consumer<LambdaDslJsonArray> nestedArray)
eachArrayWithMinLike(int, Integer, Consumer)size - Minimum size of the outer arraypublic LambdaDslJsonArray eachArrayWithMinLike(int numberExamples, java.lang.Integer size, java.util.function.Consumer<LambdaDslJsonArray> nestedArray)
numberExamples - number of examples to generatesize - Minimum size of the outer arraypublic LambdaDslJsonArray eachArrayWithMinMaxLike(java.lang.Integer minSize, java.lang.Integer maxSize, java.util.function.Consumer<LambdaDslJsonArray> nestedArray)
eachArrayWithMinMaxLike(Integer, Integer, int, Consumer)minSize - minimum sizemaxSize - maximum sizepublic LambdaDslJsonArray eachArrayWithMinMaxLike(java.lang.Integer minSize, java.lang.Integer maxSize, int numberExamples, java.util.function.Consumer<LambdaDslJsonArray> nestedArray)
minSize - minimum sizemaxSize - maximum sizepublic LambdaDslJsonArray dateExpression(java.lang.String expression)
expression - Date expressionpublic LambdaDslJsonArray dateExpression(java.lang.String expression, java.lang.String format)
expression - Date expressionformat - Date format to use for valuespublic LambdaDslJsonArray timeExpression(java.lang.String expression)
expression - Time expressionpublic LambdaDslJsonArray timeExpression(java.lang.String expression, java.lang.String format)
expression - Time expressionformat - Time format to use for valuespublic LambdaDslJsonArray datetimeExpression(java.lang.String expression)
expression - Datetime expressionpublic LambdaDslJsonArray datetimeExpression(java.lang.String expression, java.lang.String format)
expression - Datetime expressionformat - Datetime format to use for valuespublic au.com.dius.pact.consumer.dsl.DslPart build()