Package au.com.dius.pact.consumer.dsl
Class LambdaDsl
java.lang.Object
au.com.dius.pact.consumer.dsl.LambdaDsl
An alternative, lambda based, dsl for pact that runs on top of the default pact dsl objects.
-
Method Summary
Modifier and TypeMethodDescriptionstatic LambdaDslJsonArraynewJsonArray(Consumer<LambdaDslJsonArray> array) DSL function to simplify creating aDslPartgenerated from aLambdaDslJsonArray.static LambdaDslJsonArraynewJsonArrayMaxLike(Integer size, Consumer<LambdaDslJsonArray> array) DSL function to simplify creating aDslPartgenerated from aLambdaDslJsonArraywhere a maximum base array size is specifiedstatic LambdaDslJsonArraynewJsonArrayMaxUnordered(int size, Consumer<LambdaDslJsonArray> array) New JSON array element of max size where order is ignoredstatic LambdaDslJsonArraynewJsonArrayMinLike(Integer size, Consumer<LambdaDslJsonArray> array) DSL function to simplify creating aDslPartgenerated from aLambdaDslJsonArraywhere a minimum base array size is specifiedstatic LambdaDslJsonArraynewJsonArrayMinMaxLike(Integer minSize, Integer maxSize, Consumer<LambdaDslJsonArray> array) DSL function to simplify creating aDslPartgenerated from aLambdaDslJsonArraywhere a minimum and maximum base array size is specifiedstatic LambdaDslJsonArraynewJsonArrayMinMaxUnordered(int minSize, int maxSize, Consumer<LambdaDslJsonArray> array) New JSON array element of min and max size where order is ignoredstatic LambdaDslJsonArraynewJsonArrayMinUnordered(int size, Consumer<LambdaDslJsonArray> array) New JSON array element of min size where order is ignoredstatic LambdaDslJsonArrayNew JSON array element where order is ignoredstatic LambdaDslJsonBodynewJsonBody(Consumer<LambdaDslJsonBody> array) DSL function to simplify creating aDslPartgenerated from aLambdaDslJsonBody.
-
Method Details
-
newJsonArray
DSL function to simplify creating aDslPartgenerated from aLambdaDslJsonArray. -
newJsonArrayMinLike
public static LambdaDslJsonArray newJsonArrayMinLike(Integer size, Consumer<LambdaDslJsonArray> array) DSL function to simplify creating aDslPartgenerated from aLambdaDslJsonArraywhere a minimum base array size is specified -
newJsonArrayMaxLike
public static LambdaDslJsonArray newJsonArrayMaxLike(Integer size, Consumer<LambdaDslJsonArray> array) DSL function to simplify creating aDslPartgenerated from aLambdaDslJsonArraywhere a maximum base array size is specified -
newJsonArrayMinMaxLike
public static LambdaDslJsonArray newJsonArrayMinMaxLike(Integer minSize, Integer maxSize, Consumer<LambdaDslJsonArray> array) DSL function to simplify creating aDslPartgenerated from aLambdaDslJsonArraywhere a minimum and maximum base array size is specified -
newJsonArrayUnordered
New JSON array element where order is ignored -
newJsonArrayMinUnordered
public static LambdaDslJsonArray newJsonArrayMinUnordered(int size, Consumer<LambdaDslJsonArray> array) New JSON array element of min size where order is ignored- Parameters:
size-
-
newJsonArrayMaxUnordered
public static LambdaDslJsonArray newJsonArrayMaxUnordered(int size, 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, Consumer<LambdaDslJsonArray> array) New JSON array element of min and max size where order is ignored- Parameters:
minSize-maxSize-
-
newJsonBody
DSL function to simplify creating aDslPartgenerated from aLambdaDslJsonBody.
-