DSL Builder for constructing JSON bodies
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
ALL_LIST_ITEMS |
|
static java.lang.String |
END_LIST |
|
static java.lang.String |
PATH_SEP |
|
static java.lang.String |
STAR |
|
static java.lang.String |
START_LIST |
|
static int |
TWO |
| Type | Name and description |
|---|---|
java.lang.Object |
generators |
java.lang.Object |
matchers |
java.lang.Object |
mimetype |
java.lang.Boolean |
prettyPrintBody |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Object |
build(java.util.List array, java.lang.String path = '') |
|
java.lang.Object |
build(au.com.dius.pact.consumer.groovy.LikeMatcher matcher) |
|
java.lang.Object |
build(groovy.lang.Closure closure) |
|
java.lang.Object |
call(groovy.lang.Closure closure) |
|
java.lang.Object |
fromProviderState(java.lang.String expression, java.lang.Object exampleValue)Marks a item as to be injected from the provider state |
|
java.lang.String |
getBody() |
|
java.lang.Object |
keyLike(java.lang.String key, java.lang.Object value)Matches the values of the map ignoring the keys. |
|
java.lang.Object |
methodMissing(java.lang.String name, java.lang.Object args) |
|
java.lang.Object |
propertyMissing(java.lang.String name) |
|
java.lang.Object |
propertyMissing(java.lang.String name, java.lang.Object value) |
| Methods inherited from class | Name |
|---|---|
class GroovyBuilder |
build, call |
Marks a item as to be injected from the provider state
expression - Expression to lookup in the provider state contextexampleValue - Example value to use in the consumer testMatches the values of the map ignoring the keys. Note: this needs the Java system property "pact.matching.wildcard" set to value "true" when the pact file is verified.