Package au.com.dius.pact.consumer.dsl
Class LambdaDsl
- java.lang.Object
-
- au.com.dius.pact.consumer.dsl.LambdaDsl
-
public class LambdaDsl extends java.lang.Object
An alternative, lambda based, dsl for pact that runs on top of the default pact dsl objects.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LambdaDslJsonArray
newJsonArray(java.util.function.Consumer<LambdaDslJsonArray> array)
DSL function to simplify creating aDslPart
generated from aLambdaDslJsonArray
.static LambdaDslJsonArray
newJsonArrayMaxLike(java.lang.Integer size, java.util.function.Consumer<LambdaDslJsonArray> array)
DSL function to simplify creating aDslPart
generated from aLambdaDslJsonArray
where a maximum base array size is specifiedstatic LambdaDslJsonArray
newJsonArrayMaxUnordered(int size, java.util.function.Consumer<LambdaDslJsonArray> array)
New JSON array element of max size where order is ignoredstatic LambdaDslJsonArray
newJsonArrayMinLike(java.lang.Integer size, java.util.function.Consumer<LambdaDslJsonArray> array)
DSL function to simplify creating aDslPart
generated from aLambdaDslJsonArray
where a minimum base array size is specifiedstatic LambdaDslJsonArray
newJsonArrayMinMaxLike(java.lang.Integer minSize, java.lang.Integer maxSize, java.util.function.Consumer<LambdaDslJsonArray> array)
DSL function to simplify creating aDslPart
generated from aLambdaDslJsonArray
where a minimum and maximum base array size is specifiedstatic LambdaDslJsonArray
newJsonArrayMinMaxUnordered(int minSize, int maxSize, java.util.function.Consumer<LambdaDslJsonArray> array)
New JSON array element of min and max size where order is ignoredstatic LambdaDslJsonArray
newJsonArrayMinUnordered(int size, java.util.function.Consumer<LambdaDslJsonArray> array)
New JSON array element of min size where order is ignoredstatic LambdaDslJsonArray
newJsonArrayUnordered(java.util.function.Consumer<LambdaDslJsonArray> array)
New JSON array element where order is ignoredstatic LambdaDslJsonBody
newJsonBody(java.util.function.Consumer<LambdaDslJsonBody> array)
DSL function to simplify creating aDslPart
generated from aLambdaDslJsonBody
.
-
-
-
Method Detail
-
newJsonArray
public static LambdaDslJsonArray newJsonArray(java.util.function.Consumer<LambdaDslJsonArray> array)
DSL function to simplify creating aDslPart
generated from aLambdaDslJsonArray
.
-
newJsonArrayMinLike
public static LambdaDslJsonArray newJsonArrayMinLike(java.lang.Integer size, java.util.function.Consumer<LambdaDslJsonArray> array)
DSL function to simplify creating aDslPart
generated from aLambdaDslJsonArray
where a minimum base array size is specified
-
newJsonArrayMaxLike
public static LambdaDslJsonArray newJsonArrayMaxLike(java.lang.Integer size, java.util.function.Consumer<LambdaDslJsonArray> array)
DSL function to simplify creating aDslPart
generated from aLambdaDslJsonArray
where a maximum base array size is specified
-
newJsonArrayMinMaxLike
public static LambdaDslJsonArray newJsonArrayMinMaxLike(java.lang.Integer minSize, java.lang.Integer maxSize, java.util.function.Consumer<LambdaDslJsonArray> array)
DSL function to simplify creating aDslPart
generated from aLambdaDslJsonArray
where a minimum and maximum base array size is specified
-
newJsonArrayUnordered
public static LambdaDslJsonArray newJsonArrayUnordered(java.util.function.Consumer<LambdaDslJsonArray> array)
New JSON array element where order is ignored
-
newJsonArrayMinUnordered
public static LambdaDslJsonArray newJsonArrayMinUnordered(int size, java.util.function.Consumer<LambdaDslJsonArray> array)
New JSON array element of min size where order is ignored- Parameters:
size
-
-
newJsonArrayMaxUnordered
public static LambdaDslJsonArray newJsonArrayMaxUnordered(int size, java.util.function.Consumer<LambdaDslJsonArray> array)
New JSON array element of max size where order is ignored- Parameters:
size
-
-
newJsonArrayMinMaxUnordered
public static LambdaDslJsonArray newJsonArrayMinMaxUnordered(int minSize, int maxSize, java.util.function.Consumer<LambdaDslJsonArray> array)
New JSON array element of min and max size where order is ignored- Parameters:
minSize
-maxSize
-
-
newJsonBody
public static LambdaDslJsonBody newJsonBody(java.util.function.Consumer<LambdaDslJsonBody> array)
DSL function to simplify creating aDslPart
generated from aLambdaDslJsonBody
.
-
-