abstract class DslPart extends AnyRef
Abstract base class to support Object and Array JSON DSL builders
- Alphabetic
- By Inheritance
- DslPart
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Abstract Value Members
-
abstract
def
array(): PactDslJsonArray
Element as an array
-
abstract
def
array(name: String): PactDslJsonArray
Field which is an array
Field which is an array
- name
field name
-
abstract
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
-
abstract
def
closeArray(): DslPart
Close of the previous array element
-
abstract
def
closeObject(): DslPart
Close off the previous object
-
abstract
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
-
abstract
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
-
abstract
def
eachArrayLike(): PactDslJsonArray
Array element where each element of the array is an array and must match the following object
-
abstract
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
-
abstract
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
-
abstract
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
-
abstract
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
-
abstract
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
-
abstract
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
-
abstract
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
-
abstract
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
-
abstract
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
-
abstract
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
-
abstract
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
-
abstract
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
-
abstract
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
-
abstract
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
-
abstract
def
eachLike(name: String, numberExamples: Int): PactDslJsonBody
Array field where each element must match the following object
Array field where each element must match the following object
- name
field name
- numberExamples
number of examples to generate
-
abstract
def
eachLike(): PactDslJsonBody
Array element where each element of the array must match the following object
-
abstract
def
eachLike(name: String): PactDslJsonBody
Array field where each element must match the following object
Array field where each element must match the following object
- name
field name
- abstract def getBody(): AnyRef
-
abstract
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
-
abstract
def
maxArrayLike(name: String, size: Integer, numberExamples: Int): PactDslJsonBody
Array field with a maximum size and each element must match the provided object
Array field with a maximum size and each element must match the provided object
- name
field name
- size
maximum size
- numberExamples
number of examples to generate
-
abstract
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
-
abstract
def
maxArrayLike(name: String, size: Integer): PactDslJsonBody
Array field with a maximum size and each element must match the provided object
Array field with a maximum size and each element must match the provided object
- name
field name
- size
maximum size
-
abstract
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
-
abstract
def
minArrayLike(name: String, size: Integer, numberExamples: Int): PactDslJsonBody
Array field with a minumum size and each element must match the provided object
Array field with a minumum size and each element must match the provided object
- name
field name
- size
minimum size
- numberExamples
number of examples to generate
-
abstract
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
-
abstract
def
minArrayLike(name: String, size: Integer): PactDslJsonBody
Array field with a minumum size and each element must match the provided object
Array field with a minumum size and each element must match the provided object
- name
field name
- size
minimum size
-
abstract
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
-
abstract
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
-
abstract
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
-
abstract
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
-
abstract
def
object(): PactDslJsonBody
Object element
-
abstract
def
object(name: String): PactDslJsonBody
Object field
Object field
- name
field name
-
abstract
def
putArray(object: DslPart): Unit
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
-
abstract
def
putObject(object: DslPart): Unit
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
-
abstract
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
- Deprecated
Use eachLike instead
-
abstract
def
arrayLike(name: String): PactDslJsonBody
Array field where each element must match the following object
Array field where each element must match the following object
- name
field name
- Deprecated
Use eachLike instead
Concrete 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 asArray(): PactDslJsonArray
- def asBody(): PactDslJsonBody
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
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] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getGenerators(): Generators
- def getMatchers(): Category
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
includesMatcher(value: Any): IncludeMatcher
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
matchDate(format: String): DateMatcher
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
-
def
matchMax(max: Integer): MaxTypeMatcher
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
-
def
matchMin(min: Integer): MinTypeMatcher
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
-
def
matchMinMax(minSize: Integer, maxSize: Integer): MinMaxTypeMatcher
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
-
def
matchTime(format: String): TimeMatcher
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
-
def
matchTimestamp(format: String): TimestampMatcher
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
-
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
regexp(regex: String): RegexMatcher
- Attributes
- protected[au.com.dius.pact.consumer.dsl]
- def setGenerators(generators: Generators): Unit
- def setMatchers(matchers: Category): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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( ... )