/** * Array of values with a minimum size that are not objects where each item must match the provided example * @param size minimum size of the array * @param value Value to use to match each item */ public PactDslJsonArray minArrayLike(Integer size, PactDslJsonRootValue value) { return minArrayLike(size, value, size); }
/** * Element that is an array with a minimum size where each item must match the following example * @param size minimum size of the array */ @Override public PactDslJsonBody minArrayLike(Integer size) { return minArrayLike(size, size); }
/** * Element that is an array with a minimum size where each item must match the following example * @param size minimum size of the array */ @Override public PactDslJsonBody minArrayLike(Integer size) { return minArrayLike(size, size); }
/** * Array of values with a minimum size that are not objects where each item must match the provided example * @param size minimum size of the array * @param value Value to use to match each item */ public PactDslJsonArray minArrayLike(Integer size, PactDslJsonRootValue value) { return minArrayLike(size, value, size); }
/** * Element that is an array with a minimum size where each item must match the following example * * @param size minimum size of the array */ public LambdaDslJsonArray minArrayLike(Integer size, Consumer<LambdaDslJsonBody> nestedObject) { final PactDslJsonBody arrayLike = pactArray.minArrayLike(size); final LambdaDslJsonBody dslBody = new LambdaDslJsonBody(arrayLike); nestedObject.accept(dslBody); arrayLike.closeArray(); return this; }
/** * Element that is an array with a minimum size where each item must match the following example * * @param size minimum size of the array * @param numberExamples number of examples to generate */ public LambdaDslJsonArray minArrayLike(Integer size, int numberExamples, Consumer<LambdaDslJsonBody> nestedObject) { final PactDslJsonBody arrayLike = pactArray.minArrayLike(size, numberExamples); final LambdaDslJsonBody dslBody = new LambdaDslJsonBody(arrayLike); nestedObject.accept(dslBody); arrayLike.closeArray(); return this; }