-
public class PactDslJsonArray.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static PactDslJsonArray.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final PactDslJsonBody
arrayEachLike(Integer numberExamples)
Array where each item must match the following example final PactDslJsonBody
arrayEachLike()
Array where each item must match the following example final PactDslJsonArray
arrayEachLike(PactDslJsonRootValue rootValue)
Root level array where each item must match the provided matcher final PactDslJsonArray
arrayEachLike(Integer numberExamples, PactDslJsonRootValue value)
Root level array where each item must match the provided matcher final PactDslJsonBody
arrayMinLike(Integer minSize, Integer numberExamples)
Array with a minimum size where each item must match the following example final PactDslJsonBody
arrayMinLike(Integer minSize)
Array with a minimum size where each item must match the following example final PactDslJsonArray
arrayMinLike(Integer minSize, PactDslJsonRootValue value)
Root level array with minimum size where each item must match the provided matcher final PactDslJsonArray
arrayMinLike(Integer minSize, Integer numberExamples, PactDslJsonRootValue value)
Root level array with minimum size where each item must match the provided matcher final PactDslJsonBody
arrayMaxLike(Integer maxSize, Integer numberExamples)
Array with a maximum size where each item must match the following example final PactDslJsonBody
arrayMaxLike(Integer maxSize)
Array with a maximum size where each item must match the following example final PactDslJsonArray
arrayMaxLike(Integer maxSize, PactDslJsonRootValue value)
Root level array with maximum size where each item must match the provided matcher final PactDslJsonArray
arrayMaxLike(Integer maxSize, Integer numberExamples, PactDslJsonRootValue value)
Root level array with maximum size where each item must match the provided matcher final PactDslJsonBody
arrayMinMaxLike(Integer minSize, Integer maxSize, Integer numberExamples)
Array with a minimum and maximum size where each item must match the following example final PactDslJsonBody
arrayMinMaxLike(Integer minSize, Integer maxSize)
Array with a minimum and maximum size where each item must match the following example 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 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 final PactDslJsonArray
newUnorderedArray()
Root level array where order is ignored final PactDslJsonArray
newUnorderedMinArray(Integer size)
Root level array of min size where order is ignored final PactDslJsonArray
newUnorderedMaxArray(Integer size)
Root level array of max size where order is ignored final PactDslJsonArray
newUnorderedMinMaxArray(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
-
-
-
-