-
public class PactDslJsonArray.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static PactDslJsonArray.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final PactDslJsonBodyarrayEachLike(Integer numberExamples)Array where each item must match the following example final PactDslJsonBodyarrayEachLike()Array where each item must match the following example final PactDslJsonArrayarrayEachLike(PactDslJsonRootValue rootValue)Root level array where each item must match the provided matcher final PactDslJsonArrayarrayEachLike(Integer numberExamples, PactDslJsonRootValue value)Root level array where each item must match the provided matcher final PactDslJsonBodyarrayMinLike(Integer minSize, Integer numberExamples)Array with a minimum size where each item must match the following example final PactDslJsonBodyarrayMinLike(Integer minSize)Array with a minimum size where each item must match the following example final PactDslJsonArrayarrayMinLike(Integer minSize, PactDslJsonRootValue value)Root level array with minimum size where each item must match the provided matcher final PactDslJsonArrayarrayMinLike(Integer minSize, Integer numberExamples, PactDslJsonRootValue value)Root level array with minimum size where each item must match the provided matcher final PactDslJsonBodyarrayMaxLike(Integer maxSize, Integer numberExamples)Array with a maximum size where each item must match the following example final PactDslJsonBodyarrayMaxLike(Integer maxSize)Array with a maximum size where each item must match the following example final PactDslJsonArrayarrayMaxLike(Integer maxSize, PactDslJsonRootValue value)Root level array with maximum size where each item must match the provided matcher final PactDslJsonArrayarrayMaxLike(Integer maxSize, Integer numberExamples, PactDslJsonRootValue value)Root level array with maximum size where each item must match the provided matcher final PactDslJsonBodyarrayMinMaxLike(Integer minSize, Integer maxSize, Integer numberExamples)Array with a minimum and maximum size where each item must match the following example final PactDslJsonBodyarrayMinMaxLike(Integer minSize, Integer maxSize)Array with a minimum and maximum size where each item must match the following example final PactDslJsonArrayarrayMinMaxLike(Integer minSize, Integer maxSize, PactDslJsonRootValue value)Root level array with minimum and maximum size where each item must match the provided matcher final PactDslJsonArrayarrayMinMaxLike(Integer minSize, Integer maxSize, Integer numberExamples, PactDslJsonRootValue value)Root level array with minimum and maximum size where each item must match the provided matcher final PactDslJsonArraynewUnorderedArray()Root level array where order is ignored final PactDslJsonArraynewUnorderedMinArray(Integer size)Root level array of min size where order is ignored final PactDslJsonArraynewUnorderedMaxArray(Integer size)Root level array of max size where order is ignored final PactDslJsonArraynewUnorderedMinMaxArray(Integer minSize, Integer maxSize)Root level array of min and max size where order is ignored -
-
Method Detail
-
arrayEachLike
@JvmOverloads() final PactDslJsonBody arrayEachLike(Integer numberExamples)
Array where each item must match the following example
- Parameters:
numberExamples- Number of examples to generate
-
arrayEachLike
@JvmOverloads() final PactDslJsonBody arrayEachLike()
Array where each item must match the following example
-
arrayEachLike
final PactDslJsonArray arrayEachLike(PactDslJsonRootValue rootValue)
Root level array where each item must match the provided matcher
-
arrayEachLike
final PactDslJsonArray arrayEachLike(Integer numberExamples, PactDslJsonRootValue value)
Root level array where each item must match the provided matcher
- Parameters:
numberExamples- Number of examples to generate
-
arrayMinLike
@JvmOverloads() final PactDslJsonBody arrayMinLike(Integer minSize, Integer numberExamples)
Array with a minimum size where each item must match the following example
- Parameters:
minSize- minimum sizenumberExamples- Number of examples to generate
-
arrayMinLike
@JvmOverloads() final PactDslJsonBody arrayMinLike(Integer minSize)
Array with a minimum size where each item must match the following example
- Parameters:
minSize- minimum size
-
arrayMinLike
final PactDslJsonArray arrayMinLike(Integer minSize, PactDslJsonRootValue value)
Root level array with minimum size where each item must match the provided matcher
- Parameters:
minSize- minimum size
-
arrayMinLike
final PactDslJsonArray arrayMinLike(Integer minSize, Integer numberExamples, PactDslJsonRootValue value)
Root level array with minimum size where each item must match the provided matcher
- Parameters:
minSize- minimum sizenumberExamples- Number of examples to generate
-
arrayMaxLike
@JvmOverloads() final PactDslJsonBody arrayMaxLike(Integer maxSize, Integer numberExamples)
Array with a maximum size where each item must match the following example
- Parameters:
maxSize- maximum sizenumberExamples- Number of examples to generate
-
arrayMaxLike
@JvmOverloads() final PactDslJsonBody arrayMaxLike(Integer maxSize)
Array with a maximum size where each item must match the following example
- Parameters:
maxSize- maximum size
-
arrayMaxLike
final PactDslJsonArray arrayMaxLike(Integer maxSize, PactDslJsonRootValue value)
Root level array with maximum size where each item must match the provided matcher
- Parameters:
maxSize- maximum size
-
arrayMaxLike
final PactDslJsonArray arrayMaxLike(Integer maxSize, Integer numberExamples, PactDslJsonRootValue value)
Root level array with maximum size where each item must match the provided matcher
- Parameters:
maxSize- maximum sizenumberExamples- Number of examples to generate
-
arrayMinMaxLike
@JvmOverloads() final PactDslJsonBody arrayMinMaxLike(Integer minSize, Integer maxSize, Integer numberExamples)
Array with a minimum and maximum size where each item must match the following example
- Parameters:
minSize- minimum sizemaxSize- maximum sizenumberExamples- Number of examples to generate
-
arrayMinMaxLike
@JvmOverloads() final PactDslJsonBody arrayMinMaxLike(Integer minSize, Integer maxSize)
Array with a minimum and maximum size where each item must match the following example
- Parameters:
minSize- minimum sizemaxSize- maximum size
-
arrayMinMaxLike
final PactDslJsonArray arrayMinMaxLike(Integer minSize, Integer maxSize, PactDslJsonRootValue value)
Root level array with minimum and maximum size where each item must match the provided matcher
- Parameters:
minSize- minimum sizemaxSize- maximum size
-
arrayMinMaxLike
final PactDslJsonArray arrayMinMaxLike(Integer minSize, Integer maxSize, Integer numberExamples, PactDslJsonRootValue value)
Root level array with minimum and maximum size where each item must match the provided matcher
- Parameters:
minSize- minimum sizemaxSize- maximum sizenumberExamples- Number of examples to generate
-
newUnorderedArray
final PactDslJsonArray newUnorderedArray()
Root level array where order is ignored
-
newUnorderedMinArray
final PactDslJsonArray newUnorderedMinArray(Integer size)
Root level array of min size where order is ignored
- Parameters:
size- minimum size
-
newUnorderedMaxArray
final PactDslJsonArray newUnorderedMaxArray(Integer size)
Root level array of max size where order is ignored
- Parameters:
size- maximum size
-
newUnorderedMinMaxArray
final PactDslJsonArray newUnorderedMinMaxArray(Integer minSize, Integer maxSize)
Root level array of min and max size where order is ignored
- Parameters:
minSize- minimum sizemaxSize- maximum size
-
-
-
-