class PactDslJsonBody extends DslPart
DSL to define a JSON Object
- Alphabetic
- By Inheritance
- PactDslJsonBody
- DslPart
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
and(name: String, value: Any, rules: <repeated...>[MatchingRule]): PactDslJsonBody
Combine all the matchers using AND
Combine all the matchers using AND
- name
Attribute name
- value
Attribute example value
- rules
Matching rules to apply
-
def
array(): PactDslJsonArray
Element as an array
Element as an array
- Definition Classes
- PactDslJsonBody → DslPart
-
def
array(name: String): PactDslJsonArray
Attribute that is an array
-
def
asArray(): PactDslJsonArray
- Definition Classes
- DslPart
-
def
asBody(): PactDslJsonBody
- Definition Classes
- DslPart
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
booleanType(name: String, example: Boolean): PactDslJsonBody
Attribute that must be a boolean
Attribute that must be a boolean
- name
attribute name
- example
example boolean to use for generated bodies
-
def
booleanType(names: <repeated...>[String]): PactDslJsonBody
Attributes that must be a boolean
Attributes that must be a boolean
- names
attribute names
-
def
booleanType(name: String): PactDslJsonBody
Attribute that must be a boolean
Attribute that must be a boolean
- name
attribute name
-
def
booleanValue(name: String, value: Boolean): PactDslJsonBody
Attribute that must be the specified boolean
Attribute that must be the specified boolean
- name
attribute name
- value
boolean value
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
close(): DslPart
This closes off the object graph build from the DSL in case any close[Object|Array] methods have not been called.
This closes off the object graph build from the DSL in case any close[Object|Array] methods have not been called.
- returns
The root object of the object graph
- Definition Classes
- PactDslJsonBody → DslPart
-
def
closeArray(): DslPart
Closes the current array
Closes the current array
- Definition Classes
- PactDslJsonBody → DslPart
-
def
closeObject(): DslPart
Closes the current JSON object
Closes the current JSON object
- Definition Classes
- PactDslJsonBody → DslPart
-
def
date(name: String, format: String, example: Date): PactDslJsonBody
Attribute that must match the provided date format
Attribute that must match the provided date format
- name
attribute date
- format
date format to match
- example
example date to use for generated values
-
def
date(name: String, format: String): PactDslJsonBody
Attribute that must match the provided date format
Attribute that must match the provided date format
- name
attribute date
- format
date format to match
-
def
date(name: String): PactDslJsonBody
Attribute that must be formatted as an ISO date
Attribute that must be formatted as an ISO date
- name
attribute name
-
def
date(): PactDslJsonBody
Attribute named 'date' that must be formatted as an ISO date
-
def
decimalType(name: String, number: Double): PactDslJsonBody
Attribute that must be a decimalType value
Attribute that must be a decimalType value
- name
attribute name
- number
example decimalType value
-
def
decimalType(name: String, number: BigDecimal): PactDslJsonBody
Attribute that must be a decimalType value
Attribute that must be a decimalType value
- name
attribute name
- number
example decimalType value
-
def
decimalType(names: <repeated...>[String]): PactDslJsonBody
Attributes that must be a decimal values
Attributes that must be a decimal values
- names
attribute names
-
def
decimalType(name: String): PactDslJsonBody
Attribute that must be a decimal value
Attribute that must be a decimal value
- name
attribute name
-
def
eachArrayLike(numberExamples: Int): PactDslJsonArray
Array element where each element of the array is an array and must match the following object
Array element where each element of the array is an array and must match the following object
- numberExamples
number of examples to generate
- Definition Classes
- PactDslJsonBody → DslPart
-
def
eachArrayLike(name: String, numberExamples: Int): PactDslJsonArray
Array field where each element is an array and must match the following object
Array field where each element is an array and must match the following object
- name
field name
- numberExamples
number of examples to generate
- Definition Classes
- PactDslJsonBody → DslPart
-
def
eachArrayLike(): PactDslJsonArray
Array element where each element of the array is an array and must match the following object
Array element where each element of the array is an array and must match the following object
- Definition Classes
- PactDslJsonBody → DslPart
-
def
eachArrayLike(name: String): PactDslJsonArray
Array field where each element is an array and must match the following object
Array field where each element is an array and must match the following object
- name
field name
- Definition Classes
- PactDslJsonBody → DslPart
-
def
eachArrayWithMaxLike(numberExamples: Int, size: Integer): PactDslJsonArray
Array element where each element of the array is an array and must match the following object
Array element where each element of the array is an array and must match the following object
- numberExamples
number of examples to generate
- size
Maximum size of the outer array
- Definition Classes
- PactDslJsonBody → DslPart
-
def
eachArrayWithMaxLike(name: String, numberExamples: Int, size: Integer): PactDslJsonArray
Array field where each element is an array and must match the following object
Array field where each element is an array and must match the following object
- name
field name
- numberExamples
number of examples to generate
- size
Maximum size of the outer array
- Definition Classes
- PactDslJsonBody → DslPart
-
def
eachArrayWithMaxLike(size: Integer): PactDslJsonArray
Array element where each element of the array is an array and must match the following object
Array element where each element of the array is an array and must match the following object
- size
Maximum size of the outer array
- Definition Classes
- PactDslJsonBody → DslPart
-
def
eachArrayWithMaxLike(name: String, size: Integer): PactDslJsonArray
Array field where each element is an array and must match the following object
Array field where each element is an array and must match the following object
- name
field name
- size
Maximum size of the outer array
- Definition Classes
- PactDslJsonBody → DslPart
-
def
eachArrayWithMinLike(numberExamples: Int, size: Integer): PactDslJsonArray
Array element where each element of the array is an array and must match the following object
Array element where each element of the array is an array and must match the following object
- numberExamples
number of examples to generate
- size
Minimum size of the outer array
- Definition Classes
- PactDslJsonBody → DslPart
-
def
eachArrayWithMinLike(name: String, numberExamples: Int, size: Integer): PactDslJsonArray
Array field where each element is an array and must match the following object
Array field where each element is an array and must match the following object
- name
field name
- numberExamples
number of examples to generate
- size
Minimum size of the outer array
- Definition Classes
- PactDslJsonBody → DslPart
-
def
eachArrayWithMinLike(size: Integer): PactDslJsonArray
Array element where each element of the array is an array and must match the following object
Array element where each element of the array is an array and must match the following object
- size
Minimum size of the outer array
- Definition Classes
- PactDslJsonBody → DslPart
-
def
eachArrayWithMinLike(name: String, size: Integer): PactDslJsonArray
Array field where each element is an array and must match the following object
Array field where each element is an array and must match the following object
- name
field name
- size
Minimum size of the outer array
- Definition Classes
- PactDslJsonBody → DslPart
-
def
eachArrayWithMinMaxLike(numberExamples: Int, minSize: Integer, maxSize: Integer): PactDslJsonArray
Array element where each element of the array is an array and must match the following object
Array element where each element of the array is an array and must match the following object
- numberExamples
number of examples to generate
- minSize
minimum size
- maxSize
maximum size
- Definition Classes
- PactDslJsonBody → DslPart
-
def
eachArrayWithMinMaxLike(name: String, numberExamples: Int, minSize: Integer, maxSize: Integer): PactDslJsonArray
Array field where each element is an array and must match the following object
Array field where each element is an array and must match the following object
- name
field name
- numberExamples
number of examples to generate
- minSize
minimum size
- maxSize
maximum size
- Definition Classes
- PactDslJsonBody → DslPart
-
def
eachArrayWithMinMaxLike(minSize: Integer, maxSize: Integer): PactDslJsonArray
Array element where each element of the array is an array and must match the following object
Array element where each element of the array is an array and must match the following object
- minSize
minimum size
- maxSize
maximum size
- Definition Classes
- PactDslJsonBody → DslPart
-
def
eachArrayWithMinMaxLike(name: String, minSize: Integer, maxSize: Integer): PactDslJsonArray
Array field where each element is an array and must match the following object
Array field where each element is an array and must match the following object
- name
field name
- minSize
minimum size
- maxSize
maximum size
- Definition Classes
- PactDslJsonBody → DslPart
-
def
eachKeyLike(exampleKey: String, value: PactDslJsonRootValue): PactDslJsonBody
Accepts any key, and each key is mapped to a map that must match the provided object definition
Accepts any key, and each key is mapped to a map that must match the provided object definition
- exampleKey
Example key to use for generating bodies
- value
Value to use for matching and generated bodies
-
def
eachKeyLike(exampleKey: String): PactDslJsonBody
Accepts any key, and each key is mapped to a map that must match the following object definition
Accepts any key, and each key is mapped to a map that must match the following object definition
- exampleKey
Example key to use for generating bodies
-
def
eachKeyMappedToAnArrayLike(exampleKey: String): PactDslJsonBody
Accepts any key, and each key is mapped to a list of items that must match the following object definition
Accepts any key, and each key is mapped to a list of items that must match the following object definition
- exampleKey
Example key to use for generating bodies
-
def
eachLike(name: String, value: PactDslJsonRootValue, numberExamples: Int): PactDslJsonBody
Attribute that is an array of values that are not objects where each item must match the following example
Attribute that is an array of values that are not objects where each item must match the following example
- name
field name
- value
Value to use to match each item
- numberExamples
number of examples to generate
-
def
eachLike(name: String, value: PactDslJsonRootValue): PactDslJsonBody
Attribute that is an array of values that are not objects where each item must match the following example
Attribute that is an array of values that are not objects where each item must match the following example
- name
field name
- value
Value to use to match each item
-
def
eachLike(numberExamples: Int): PactDslJsonBody
Array element where each element of the array must match the following object
Array element where each element of the array must match the following object
- numberExamples
number of examples to generate
- Definition Classes
- PactDslJsonBody → DslPart
-
def
eachLike(name: String, numberExamples: Int): PactDslJsonBody
Attribute that is an array where each item must match the following example
Attribute that is an array where each item must match the following example
- name
field name
- numberExamples
number of examples to generate
- Definition Classes
- PactDslJsonBody → DslPart
-
def
eachLike(): PactDslJsonBody
Array element where each element of the array must match the following object
Array element where each element of the array must match the following object
- Definition Classes
- PactDslJsonBody → DslPart
-
def
eachLike(name: String): PactDslJsonBody
Attribute that is an array where each item must match the following example
Attribute that is an array where each item must match the following example
- name
field name
- Definition Classes
- PactDslJsonBody → DslPart
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equalTo(name: String, value: Any): PactDslJsonBody
Attribute that must be equal to the provided value.
Attribute that must be equal to the provided value.
- name
attribute name
- value
Value that will be used for comparisons
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getBody(): AnyRef
- Definition Classes
- PactDslJsonBody → DslPart
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getGenerators(): Generators
- Definition Classes
- DslPart
-
def
getMatchers(): Category
- Definition Classes
- DslPart
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hexValue(name: String, hexValue: String): PactDslJsonBody
Attribute that must be encoded as a hexadecimal value
Attribute that must be encoded as a hexadecimal value
- name
attribute name
- hexValue
example value to use for generated bodies
-
def
hexValue(name: String): PactDslJsonBody
Attribute that must be encoded as a hexadecimal value
Attribute that must be encoded as a hexadecimal value
- name
attribute name
-
def
id(name: String, id: Long): PactDslJsonBody
Attribute that must be a numeric identifier
Attribute that must be a numeric identifier
- name
attribute name
- id
example id to use for generated bodies
-
def
id(name: String): PactDslJsonBody
Attribute that must be a numeric identifier
Attribute that must be a numeric identifier
- name
attribute name
-
def
id(): PactDslJsonBody
Attribute named 'id' that must be a numeric identifier
-
def
includesMatcher(value: Any): IncludeMatcher
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
- Definition Classes
- DslPart
-
def
includesStr(name: String, value: String): PactDslJsonBody
Attribute that must include the provided string value
Attribute that must include the provided string value
- name
attribute name
- value
Value that must be included
-
def
integerType(name: String, number: Integer): PactDslJsonBody
Attribute that must be an integer
Attribute that must be an integer
- name
attribute name
- number
example integer value to use for generated bodies
-
def
integerType(name: String, number: Long): PactDslJsonBody
Attribute that must be an integer
Attribute that must be an integer
- name
attribute name
- number
example integer value to use for generated bodies
-
def
integerType(names: <repeated...>[String]): PactDslJsonBody
Attributes that must be an integer
Attributes that must be an integer
- names
attribute names
-
def
integerType(name: String): PactDslJsonBody
Attribute that must be an integer
Attribute that must be an integer
- name
attribute name
-
def
ipAddress(name: String): PactDslJsonBody
Attribute that must be an IP4 address
Attribute that must be an IP4 address
- name
attribute name
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
matchDate(format: String): DateMatcher
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
- Definition Classes
- DslPart
-
def
matchMax(max: Integer): MaxTypeMatcher
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
- Definition Classes
- DslPart
-
def
matchMin(min: Integer): MinTypeMatcher
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
- Definition Classes
- DslPart
-
def
matchMinMax(minSize: Integer, maxSize: Integer): MinMaxTypeMatcher
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
- Definition Classes
- DslPart
-
def
matchTime(format: String): TimeMatcher
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
- Definition Classes
- DslPart
-
def
matchTimestamp(format: String): TimestampMatcher
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
- Definition Classes
- DslPart
-
def
matchUrl(name: String, basePath: String, pathFragments: <repeated...>[AnyRef]): PactDslJsonBody
Matches a URL that is composed of a base path and a sequence of path expressions
Matches a URL that is composed of a base path and a sequence of path expressions
- name
Attribute name
- basePath
The base path for the URL (like "http://localhost:8080/") which will be excluded from the matching
- pathFragments
Series of path fragments to match on. These can be strings or regular expressions.
-
def
maxArrayLike(name: String, size: Integer, value: PactDslJsonRootValue, numberExamples: Int): PactDslJsonBody
Attribute that is an array of values with a maximum size that are not objects where each item must match the following example
Attribute that is an array of values with a maximum size that are not objects where each item must match the following example
- name
field name
- size
maximum size of the array
- value
Value to use to match each item
- numberExamples
number of examples to generate
-
def
maxArrayLike(name: String, size: Integer, value: PactDslJsonRootValue): PactDslJsonBody
Attribute that is an array of values with a maximum size that are not objects where each item must match the following example
Attribute that is an array of values with a maximum size that are not objects where each item must match the following example
- name
field name
- size
maximum size of the array
- value
Value to use to match each item
-
def
maxArrayLike(size: Integer, numberExamples: Int): PactDslJsonBody
Array element with a maximum size and each element of the array must match the provided object
Array element with a maximum size and each element of the array must match the provided object
- size
minimum size
- numberExamples
number of examples to generate
- Definition Classes
- PactDslJsonBody → DslPart
-
def
maxArrayLike(name: String, size: Integer, numberExamples: Int): PactDslJsonBody
Attribute that is an array with a maximum size where each item must match the following example
Attribute that is an array with a maximum size where each item must match the following example
- name
field name
- size
maximum size of the array
- numberExamples
number of examples to generate
- Definition Classes
- PactDslJsonBody → DslPart
-
def
maxArrayLike(size: Integer): PactDslJsonBody
Array element with a maximum size and each element of the array must match the provided object
Array element with a maximum size and each element of the array must match the provided object
- size
minimum size
- Definition Classes
- PactDslJsonBody → DslPart
-
def
maxArrayLike(name: String, size: Integer): PactDslJsonBody
Attribute that is an array with a maximum size where each item must match the following example
Attribute that is an array with a maximum size where each item must match the following example
- name
field name
- size
maximum size of the array
- Definition Classes
- PactDslJsonBody → DslPart
-
def
minArrayLike(name: String, size: Integer, value: PactDslJsonRootValue, numberExamples: Int): PactDslJsonBody
Attribute that is an array of values with a minimum size that are not objects where each item must match the following example
Attribute that is an array of values with a minimum size that are not objects where each item must match the following example
- name
field name
- size
minimum size of the array
- value
Value to use to match each item
- numberExamples
number of examples to generate
-
def
minArrayLike(name: String, size: Integer, value: PactDslJsonRootValue): PactDslJsonBody
Attribute that is an array of values with a minimum size that are not objects where each item must match the following example
Attribute that is an array of values with a minimum size that are not objects where each item must match the following example
- name
field name
- size
minimum size of the array
- value
Value to use to match each item
-
def
minArrayLike(size: Integer, numberExamples: Int): PactDslJsonBody
Array element with a minumum size and each element of the array must match the provided object
Array element with a minumum size and each element of the array must match the provided object
- size
minimum size
- numberExamples
number of examples to generate
- Definition Classes
- PactDslJsonBody → DslPart
-
def
minArrayLike(name: String, size: Integer, numberExamples: Int): PactDslJsonBody
Attribute that is an array with a minimum size where each item must match the following example
Attribute that is an array with a minimum size where each item must match the following example
- name
field name
- size
minimum size of the array
- numberExamples
number of examples to generate
- Definition Classes
- PactDslJsonBody → DslPart
-
def
minArrayLike(size: Integer): PactDslJsonBody
Array element with a minumum size and each element of the array must match the provided object
Array element with a minumum size and each element of the array must match the provided object
- size
minimum size
- Definition Classes
- PactDslJsonBody → DslPart
-
def
minArrayLike(name: String, size: Integer): PactDslJsonBody
Attribute that is an array with a minimum size where each item must match the following example
Attribute that is an array with a minimum size where each item must match the following example
- name
field name
- size
minimum size of the array
- Definition Classes
- PactDslJsonBody → DslPart
-
def
minMaxArrayLike(name: String, minSize: Integer, maxSize: Integer, value: PactDslJsonRootValue, numberExamples: Int): PactDslJsonBody
Attribute that is an array of values with a minimum and maximum size that are not objects where each item must match the following example
Attribute that is an array of values with a minimum and maximum size that are not objects where each item must match the following example
- name
field name
- minSize
minimum size
- maxSize
maximum size
- value
Value to use to match each item
- numberExamples
number of examples to generate
-
def
minMaxArrayLike(minSize: Integer, maxSize: Integer, numberExamples: Int): PactDslJsonBody
Array element with a minimum and maximum size and each element of the array must match the provided object
Array element with a minimum and maximum size and each element of the array must match the provided object
- minSize
minimum size
- maxSize
maximum size
- numberExamples
number of examples to generate
- Definition Classes
- PactDslJsonBody → DslPart
-
def
minMaxArrayLike(name: String, minSize: Integer, maxSize: Integer, numberExamples: Int): PactDslJsonBody
Array field with a minimum and maximum size and each element must match the provided object
Array field with a minimum and maximum size and each element must match the provided object
- name
field name
- minSize
minimum size
- maxSize
maximum size
- numberExamples
number of examples to generate
- Definition Classes
- PactDslJsonBody → DslPart
-
def
minMaxArrayLike(minSize: Integer, maxSize: Integer): PactDslJsonBody
Array element with a minimum and maximum size and each element of the array must match the provided object
Array element with a minimum and maximum size and each element of the array must match the provided object
- minSize
minimum size
- maxSize
maximum size
- Definition Classes
- PactDslJsonBody → DslPart
-
def
minMaxArrayLike(name: String, minSize: Integer, maxSize: Integer): PactDslJsonBody
Array field with a minimum and maximum size and each element must match the provided object
Array field with a minimum and maximum size and each element must match the provided object
- name
field name
- minSize
minimum size
- maxSize
maximum size
- Definition Classes
- PactDslJsonBody → DslPart
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
nullValue(fieldName: String): PactDslJsonBody
Sets the field to a null value
Sets the field to a null value
- fieldName
field name
-
def
numberType(name: String, number: Number): PactDslJsonBody
Attribute that can be any number
Attribute that can be any number
- name
attribute name
- number
example number to use for generated bodies
-
def
numberType(names: <repeated...>[String]): PactDslJsonBody
Attributes that can be any number
Attributes that can be any number
- names
attribute names
-
def
numberType(name: String): PactDslJsonBody
Attribute that can be any number
Attribute that can be any number
- name
attribute name
-
def
numberValue(name: String, value: Number): PactDslJsonBody
Attribute that must be the specified number
Attribute that must be the specified number
- name
attribute name
- value
number value
-
def
object(): PactDslJsonBody
Object element
Object element
- Definition Classes
- PactDslJsonBody → DslPart
-
def
object(name: String): PactDslJsonBody
Attribute that is a JSON object
-
def
or(name: String, value: Any, rules: <repeated...>[MatchingRule]): PactDslJsonBody
Combine all the matchers using OR
Combine all the matchers using OR
- name
Attribute name
- value
Attribute example value
- rules
Matching rules to apply
-
def
putArray(object: DslPart): Unit
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
- Definition Classes
- PactDslJsonBody → DslPart
-
def
putObject(object: DslPart): Unit
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
- Definition Classes
- PactDslJsonBody → DslPart
-
def
regexp(regex: String): RegexMatcher
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
- Definition Classes
- DslPart
-
def
setGenerators(generators: Generators): Unit
- Definition Classes
- DslPart
-
def
setMatchers(matchers: Category): Unit
- Definition Classes
- DslPart
-
def
stringMatcher(name: String, regex: String, value: String): PactDslJsonBody
Attribute that must match the regular expression
Attribute that must match the regular expression
- name
attribute name
- regex
regular expression
- value
example value to use for generated bodies
-
def
stringType(name: String, example: String): PactDslJsonBody
Attribute that can be any string
Attribute that can be any string
- name
attribute name
- example
example value to use for generated bodies
-
def
stringType(names: <repeated...>[String]): PactDslJsonBody
Attributes that can be any string
Attributes that can be any string
- names
attribute names
-
def
stringType(name: String): PactDslJsonBody
Attribute that can be any string
Attribute that can be any string
- name
attribute name
-
def
stringValue(name: String, value: String): PactDslJsonBody
Attribute that must be the specified value
Attribute that must be the specified value
- name
attribute name
- value
string value
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
time(name: String, format: String, example: Date): PactDslJsonBody
Attribute that must match the given time format
Attribute that must match the given time format
- name
attribute name
- format
time format to match
- example
example time to use for generated bodies
-
def
time(name: String, format: String): PactDslJsonBody
Attribute that must match the given time format
Attribute that must match the given time format
- name
attribute name
- format
time format to match
-
def
time(name: String): PactDslJsonBody
Attribute that must be an ISO formatted time
Attribute that must be an ISO formatted time
- name
attribute name
-
def
time(): PactDslJsonBody
Attribute named 'time' that must be an ISO formatted time
-
def
timestamp(name: String, format: String, example: Date): PactDslJsonBody
Attribute that must match the given timestamp format
Attribute that must match the given timestamp format
- name
attribute name
- format
timestamp format
- example
example date and time to use for generated bodies
-
def
timestamp(name: String, format: String): PactDslJsonBody
Attribute that must match the given timestamp format
Attribute that must match the given timestamp format
- name
attribute name
- format
timestamp format
-
def
timestamp(name: String): PactDslJsonBody
Attribute that must be an ISO formatted timestamp
-
def
timestamp(): PactDslJsonBody
Attribute named 'timestamp' that must be an ISO formatted timestamp
-
def
toString(): String
- Definition Classes
- PactDslJsonBody → AnyRef → Any
-
def
uuid(name: String, uuid: String): PactDslJsonBody
Attribute that must be encoded as an UUID
Attribute that must be encoded as an UUID
- name
attribute name
- uuid
example UUID to use for generated bodies
-
def
uuid(name: String, uuid: UUID): PactDslJsonBody
Attribute that must be encoded as an UUID
Attribute that must be encoded as an UUID
- name
attribute name
- uuid
example UUID to use for generated bodies
-
def
uuid(name: String): PactDslJsonBody
Attribute that must be encoded as an UUID
Attribute that must be encoded as an UUID
- name
attribute name
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
Deprecated Value Members
-
def
arrayLike(): PactDslJsonBody
Array element where each element of the array must match the following object
Array element where each element of the array must match the following object
- Definition Classes
- PactDslJsonBody → DslPart
- Deprecated
Use eachLike instead
-
def
arrayLike(name: String): PactDslJsonBody
Attribute that is an array where each item must match the following example
Attribute that is an array where each item must match the following example
- name
field name
- Definition Classes
- PactDslJsonBody → DslPart
- Deprecated
use eachLike
-
def
guid(name: String, uuid: String): PactDslJsonBody
Attribute that must be encoded as a GUID
Attribute that must be encoded as a GUID
- name
attribute name
- uuid
example UUID to use for generated bodies
- Deprecated
use uuid instead
-
def
guid(name: String, uuid: UUID): PactDslJsonBody
Attribute that must be encoded as a GUID
Attribute that must be encoded as a GUID
- name
attribute name
- uuid
example UUID to use for generated bodies
- Deprecated
use uuid instead
-
def
guid(name: String): PactDslJsonBody
Attribute that must be encoded as a GUID
Attribute that must be encoded as a GUID
- name
attribute name
- Deprecated
use uuid instead
-
def
realType(name: String, number: Double): PactDslJsonBody
Attribute that must be a real value
Attribute that must be a real value
- name
attribute name
- number
example real value
- Deprecated
Use decimal instead
-
def
realType(name: String): PactDslJsonBody
Attribute that must be a real value
Attribute that must be a real value
- name
attribute name
- Deprecated
Use decimal instead
-
def
stringMatcher(name: String, regex: String): PactDslJsonBody
Attribute that must match the regular expression
Attribute that must match the regular expression
- name
attribute name
- regex
regular expression
- Deprecated
Use the version that takes an example value