public class PactDslJsonRootValue
extends DslPart
DATE_2000, HEXADECIMAL, IP_ADDRESS, UUID_REGEX, closed, generators, matchers, parent, rootName, rootPath| Constructor and Description |
|---|
PactDslJsonRootValue() |
array, array, arrayLike, arrayLike, asArray, asBody, close, closeArray, closeObject, eachArrayLike, eachArrayLike, eachArrayLike, eachArrayLike, eachArrayWithMaxLike, eachArrayWithMaxLike, eachArrayWithMaxLike, eachArrayWithMaxLike, eachArrayWithMinLike, eachArrayWithMinLike, eachArrayWithMinLike, eachArrayWithMinLike, eachArrayWithMinMaxLike, eachArrayWithMinMaxLike, eachArrayWithMinMaxLike, eachArrayWithMinMaxLike, eachLike, eachLike, eachLike, eachLike, getBody, getGenerators, getMatchers, getParent, includesMatcher, matchDate, matchMax, matchMin, matchMinMax, matchTime, matchTimestamp, maxArrayLike, maxArrayLike, maxArrayLike, maxArrayLike, minArrayLike, minArrayLike, minArrayLike, minArrayLike, minMaxArrayLike, minMaxArrayLike, minMaxArrayLike, minMaxArrayLike, object, object, putArray, putObject, regexp, setGenerators, setMatcherspublic void putObject()
public void putArray()
public java.lang.Object getBody()
public boolean isEncodeJson()
If the value should be encoded to be safe as JSON
public void setEncodeJson()
If the value should be encoded to be safe as JSON
public PactDslJsonArray array()
public PactDslJsonArray array()
public DslPart closeArray()
public PactDslJsonBody arrayLike()
public PactDslJsonBody arrayLike()
public PactDslJsonBody eachLike()
public PactDslJsonBody eachLike()
public PactDslJsonBody eachLike()
public PactDslJsonBody eachLike()
public PactDslJsonBody minArrayLike()
public PactDslJsonBody minArrayLike()
public PactDslJsonBody minArrayLike()
public PactDslJsonBody minArrayLike()
public PactDslJsonBody maxArrayLike()
public PactDslJsonBody maxArrayLike()
public PactDslJsonBody maxArrayLike()
public PactDslJsonBody maxArrayLike()
public PactDslJsonBody minMaxArrayLike()
public PactDslJsonBody minMaxArrayLike()
public PactDslJsonBody minMaxArrayLike()
public PactDslJsonBody minMaxArrayLike()
public PactDslJsonBody object()
public PactDslJsonBody object()
public DslPart closeObject()
public DslPart close()
public static PactDslJsonRootValue stringType()
Value that can be any string
public static PactDslJsonRootValue stringType()
Value that can be any string
public static PactDslJsonRootValue numberType()
Value that can be any number
public static PactDslJsonRootValue numberType()
Value that can be any number
public static PactDslJsonRootValue integerType()
Value that must be an integer
public static PactDslJsonRootValue integerType()
Value that must be an integer
public static PactDslJsonRootValue integerType()
Value that must be an integer
public static PactDslJsonRootValue decimalType()
Value that must be a decimal value
public static PactDslJsonRootValue decimalType()
Value that must be a decimalType value
public static PactDslJsonRootValue decimalType()
Value that must be a decimalType value
public static PactDslJsonRootValue booleanType()
Value that must be a boolean
public static PactDslJsonRootValue booleanType()
Value that must be a boolean
public static PactDslJsonRootValue stringMatcher()
Value that must match the regular expression
public static PactDslJsonRootValue stringMatcher()
Value that must match the regular expression
public static PactDslJsonRootValue timestamp()
Value that must be an ISO formatted timestamp
public static PactDslJsonRootValue timestamp()
Value that must match the given timestamp format
public static PactDslJsonRootValue timestamp()
Value that must match the given timestamp format
public static PactDslJsonRootValue date()
Value that must be formatted as an ISO date
public static PactDslJsonRootValue date()
Value that must match the provided date format
public static PactDslJsonRootValue date()
Value that must match the provided date format
public static PactDslJsonRootValue time()
Value that must be an ISO formatted time
public static PactDslJsonRootValue time()
Value that must match the given time format
public static PactDslJsonRootValue time()
Value that must match the given time format
public static PactDslJsonRootValue ipAddress()
Value that must be an IP4 address
public static PactDslJsonRootValue id()
Value that must be a numeric identifier
public static PactDslJsonRootValue id()
Value that must be a numeric identifier
public static PactDslJsonRootValue hexValue()
Value that must be encoded as a hexadecimal value
public static PactDslJsonRootValue hexValue()
Value that must be encoded as a hexadecimal value
public static PactDslJsonRootValue uuid()
Value that must be encoded as an UUID
public static PactDslJsonRootValue uuid()
Value that must be encoded as an UUID
public static PactDslJsonRootValue uuid()
Value that must be encoded as an UUID
public void setValue()
public void setMatcher()
public PactDslJsonArray eachArrayLike()
public PactDslJsonArray eachArrayLike()
public PactDslJsonArray eachArrayWithMaxLike()
public PactDslJsonArray eachArrayWithMaxLike()
public PactDslJsonArray eachArrayWithMaxLike()
public PactDslJsonArray eachArrayWithMaxLike()
public PactDslJsonArray eachArrayWithMinLike()
public PactDslJsonArray eachArrayWithMinLike()
public PactDslJsonArray eachArrayWithMinLike()
public PactDslJsonArray eachArrayWithMinLike()
public PactDslJsonArray eachArrayWithMinMaxLike()
public PactDslJsonArray eachArrayWithMinMaxLike()
public PactDslJsonArray eachArrayWithMinMaxLike()
public PactDslJsonArray eachArrayWithMinMaxLike()
public PactDslJsonArray eachArrayLike()
public PactDslJsonArray eachArrayLike()
public static PactDslJsonRootValue and()
Combine all the matchers using AND
public static PactDslJsonRootValue or()
Combine all the matchers using OR
public PactDslJsonRootValue matchUrl()
Matches a URL that is composed of a base path and a sequence of path expressions
public static PactDslJsonRootValue valueFromProviderState()
Adds a value that will have it's value injected from the provider state