Packages

c

au.com.dius.pact.consumer.dsl

PactDslJsonBody

class PactDslJsonBody extends DslPart

DSL to define a JSON Object

Linear Supertypes
DslPart, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PactDslJsonBody
  2. DslPart
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PactDslJsonBody(rootPath: String, rootName: String, parent: DslPart, body: PactDslJsonBody)

    Constructs a new body as a child as a copy of an existing one

    Constructs a new body as a child as a copy of an existing one

    rootPath

    Path to prefix to this child

    rootName

    Name to associate this object as in the parent

    parent

    Parent to attach to

    body

    Body to copy values from

  2. new PactDslJsonBody(rootPath: String, rootName: String, parent: DslPart)

    Constructs a new body as a child

    Constructs a new body as a child

    rootPath

    Path to prefix to this child

    rootName

    Name to associate this object as in the parent

    parent

    Parent to attach to

  3. new PactDslJsonBody()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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

  5. def array(): PactDslJsonArray

    Element as an array

    Element as an array

    Definition Classes
    PactDslJsonBodyDslPart
  6. def array(name: String): PactDslJsonArray

    Attribute that is an array

    Attribute that is an array

    name

    field name

    Definition Classes
    PactDslJsonBodyDslPart
  7. def asArray(): PactDslJsonArray
    Definition Classes
    DslPart
  8. def asBody(): PactDslJsonBody
    Definition Classes
    DslPart
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. 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

  11. def booleanType(names: <repeated...>[String]): PactDslJsonBody

    Attributes that must be a boolean

    Attributes that must be a boolean

    names

    attribute names

  12. def booleanType(name: String): PactDslJsonBody

    Attribute that must be a boolean

    Attribute that must be a boolean

    name

    attribute name

  13. 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

  14. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  15. 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
    PactDslJsonBodyDslPart
  16. def closeArray(): DslPart

    Closes the current array

    Closes the current array

    Definition Classes
    PactDslJsonBodyDslPart
  17. def closeObject(): DslPart

    Closes the current JSON object

    Closes the current JSON object

    Definition Classes
    PactDslJsonBodyDslPart
  18. def date(name: String, format: String, example: Date, timeZone: TimeZone): 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

    timeZone

    time zone used for formatting of example date

  19. 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

  20. 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

  21. 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

  22. def date(): PactDslJsonBody

    Attribute named 'date' that must be formatted as an ISO date

  23. 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

  24. 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

  25. def decimalType(names: <repeated...>[String]): PactDslJsonBody

    Attributes that must be a decimal values

    Attributes that must be a decimal values

    names

    attribute names

  26. def decimalType(name: String): PactDslJsonBody

    Attribute that must be a decimal value

    Attribute that must be a decimal value

    name

    attribute name

  27. 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
    PactDslJsonBodyDslPart
  28. 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
    PactDslJsonBodyDslPart
  29. 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
    PactDslJsonBodyDslPart
  30. 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
    PactDslJsonBodyDslPart
  31. 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
    PactDslJsonBodyDslPart
  32. 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
    PactDslJsonBodyDslPart
  33. 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
    PactDslJsonBodyDslPart
  34. 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
    PactDslJsonBodyDslPart
  35. 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
    PactDslJsonBodyDslPart
  36. 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
    PactDslJsonBodyDslPart
  37. 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
    PactDslJsonBodyDslPart
  38. 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
    PactDslJsonBodyDslPart
  39. 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
    PactDslJsonBodyDslPart
  40. 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
    PactDslJsonBodyDslPart
  41. 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
    PactDslJsonBodyDslPart
  42. 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
    PactDslJsonBodyDslPart
  43. 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 Note: this needs the Java system property "pact.matching.wildcard" set to value "true" when the pact file is verified.

    Accepts any key, and each key is mapped to a map that must match the provided object definition Note: this needs the Java system property "pact.matching.wildcard" set to value "true" when the pact file is verified.

    exampleKey

    Example key to use for generating bodies

    value

    Value to use for matching and generated bodies

  44. def eachKeyLike(exampleKey: String): PactDslJsonBody

    Accepts any key, and each key is mapped to a map that must match the following object definition Note: this needs the Java system property "pact.matching.wildcard" set to value "true" when the pact file is verified.

    Accepts any key, and each key is mapped to a map that must match the following object definition Note: this needs the Java system property "pact.matching.wildcard" set to value "true" when the pact file is verified.

    exampleKey

    Example key to use for generating bodies

  45. 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 Note: this needs the Java system property "pact.matching.wildcard" set to value "true" when the pact file is verified.

    Accepts any key, and each key is mapped to a list of items that must match the following object definition Note: this needs the Java system property "pact.matching.wildcard" set to value "true" when the pact file is verified.

    exampleKey

    Example key to use for generating bodies

  46. 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

  47. 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

  48. 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
    PactDslJsonBodyDslPart
  49. 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
    PactDslJsonBodyDslPart
  50. 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
    PactDslJsonBodyDslPart
  51. 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
    PactDslJsonBodyDslPart
  52. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  53. 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

  54. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  55. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  56. def getBody(): AnyRef
    Definition Classes
    PactDslJsonBodyDslPart
  57. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  58. def getGenerators(): Generators
    Definition Classes
    DslPart
  59. def getMatchers(): Category
    Definition Classes
    DslPart
  60. def getParent(): DslPart

    Returns the parent of this part (object or array)

    Returns the parent of this part (object or array)

    returns

    parent, or null if it is the root

    Definition Classes
    DslPart
  61. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  62. 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

  63. 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

  64. 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

  65. def id(name: String): PactDslJsonBody

    Attribute that must be a numeric identifier

    Attribute that must be a numeric identifier

    name

    attribute name

  66. def id(): PactDslJsonBody

    Attribute named 'id' that must be a numeric identifier

  67. def includesMatcher(value: Any): IncludeMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    DslPart
  68. 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

  69. 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

  70. 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

  71. def integerType(names: <repeated...>[String]): PactDslJsonBody

    Attributes that must be an integer

    Attributes that must be an integer

    names

    attribute names

  72. def integerType(name: String): PactDslJsonBody

    Attribute that must be an integer

    Attribute that must be an integer

    name

    attribute name

  73. def ipAddress(name: String): PactDslJsonBody

    Attribute that must be an IP4 address

    Attribute that must be an IP4 address

    name

    attribute name

  74. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  75. def matchDate(format: String): DateMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    DslPart
  76. def matchMax(max: Integer): MaxTypeMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    DslPart
  77. def matchMin(min: Integer): MinTypeMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    DslPart
  78. def matchMinMax(minSize: Integer, maxSize: Integer): MinMaxTypeMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    DslPart
  79. def matchTime(format: String): TimeMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    DslPart
  80. def matchTimestamp(format: String): TimestampMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    DslPart
  81. 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.

  82. 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

  83. 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

  84. 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
    PactDslJsonBodyDslPart
  85. 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
    PactDslJsonBodyDslPart
  86. 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
    PactDslJsonBodyDslPart
  87. 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
    PactDslJsonBodyDslPart
  88. 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

  89. 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

  90. 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
    PactDslJsonBodyDslPart
  91. 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
    PactDslJsonBodyDslPart
  92. 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
    PactDslJsonBodyDslPart
  93. 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
    PactDslJsonBodyDslPart
  94. 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

  95. 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
    PactDslJsonBodyDslPart
  96. 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
    PactDslJsonBodyDslPart
  97. 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
    PactDslJsonBodyDslPart
  98. 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
    PactDslJsonBodyDslPart
  99. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  100. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  101. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  102. def nullValue(fieldName: String): PactDslJsonBody

    Sets the field to a null value

    Sets the field to a null value

    fieldName

    field name

  103. 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

  104. def numberType(names: <repeated...>[String]): PactDslJsonBody

    Attributes that can be any number

    Attributes that can be any number

    names

    attribute names

  105. def numberType(name: String): PactDslJsonBody

    Attribute that can be any number

    Attribute that can be any number

    name

    attribute name

  106. 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

  107. def object(name: String, value: DslPart): PactDslJsonBody

    Attribute that is a JSON object defined from a DSL part

    Attribute that is a JSON object defined from a DSL part

    name

    field name

    value

    DSL Part to set the value as

  108. def object(): PactDslJsonBody

    Object element

    Object element

    Definition Classes
    PactDslJsonBodyDslPart
  109. def object(name: String): PactDslJsonBody

    Attribute that is a JSON object

    Attribute that is a JSON object

    name

    field name

    Definition Classes
    PactDslJsonBodyDslPart
  110. 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

  111. def putArray(object: DslPart): Unit
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    PactDslJsonBodyDslPart
  112. def putObject(object: DslPart): Unit
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    PactDslJsonBodyDslPart
  113. def regexp(regex: String): RegexMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    DslPart
  114. def setGenerators(generators: Generators): Unit
    Definition Classes
    DslPart
  115. def setMatchers(matchers: Category): Unit
    Definition Classes
    DslPart
  116. 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

  117. 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

  118. def stringType(names: <repeated...>[String]): PactDslJsonBody

    Attributes that can be any string

    Attributes that can be any string

    names

    attribute names

  119. def stringType(name: String): PactDslJsonBody

    Attribute that can be any string

    Attribute that can be any string

    name

    attribute name

  120. 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

  121. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  122. def time(name: String, format: String, example: Date, timeZone: TimeZone): 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

    timeZone

    time zone used for formatting of example time

  123. 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

  124. 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

  125. def time(name: String): PactDslJsonBody

    Attribute that must be an ISO formatted time

    Attribute that must be an ISO formatted time

    name

    attribute name

  126. def time(): PactDslJsonBody

    Attribute named 'time' that must be an ISO formatted time

  127. def timestamp(name: String, format: String, example: Instant, timeZone: TimeZone): 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

    timeZone

    time zone used for formatting of example date and time

  128. def timestamp(name: String, format: String, example: Instant): 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

  129. def timestamp(name: String, format: String, example: Date, timeZone: TimeZone): 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

    timeZone

    time zone used for formatting of example date and time

  130. 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

  131. 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

  132. def timestamp(name: String): PactDslJsonBody

    Attribute that must be an ISO formatted timestamp

  133. def timestamp(): PactDslJsonBody

    Attribute named 'timestamp' that must be an ISO formatted timestamp

  134. def toString(): String
    Definition Classes
    PactDslJsonBody → AnyRef → Any
  135. 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

  136. 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

  137. def uuid(name: String): PactDslJsonBody

    Attribute that must be encoded as an UUID

    Attribute that must be encoded as an UUID

    name

    attribute name

  138. def valueFromProviderState(name: String, expression: String, example: Any): PactDslJsonBody

    Adds an attribute that will have it's value injected from the provider state

    Adds an attribute that will have it's value injected from the provider state

    name

    Attribute name

    expression

    Expression to be evaluated from the provider state

    example

    Example value to be used in the consumer test

  139. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  140. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  141. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Deprecated Value Members

  1. 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
    PactDslJsonBodyDslPart
    Deprecated

    Use eachLike instead

  2. 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
    PactDslJsonBodyDslPart
    Deprecated

    use eachLike

  3. 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

  4. 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

  5. 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

  6. 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

  7. 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

  8. 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

Inherited from DslPart

Inherited from AnyRef

Inherited from Any

Ungrouped