Class 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 Detail

      • newJsonArrayMinLike

        public static LambdaDslJsonArray newJsonArrayMinLike​(java.lang.Integer size,
                                                             java.util.function.Consumer<LambdaDslJsonArray> array)
        DSL function to simplify creating a DslPart generated from a LambdaDslJsonArray 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 a DslPart generated from a LambdaDslJsonArray 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 a DslPart generated from a LambdaDslJsonArray 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 -