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): 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

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

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

  21. def date(): PactDslJsonBody

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

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

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

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

    Attributes that must be a decimal values

    Attributes that must be a decimal values

    names

    attribute names

  25. def decimalType(name: String): PactDslJsonBody

    Attribute that must be a decimal value

    Attribute that must be a decimal value

    name

    attribute name

  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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

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

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

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

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

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

  53. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  54. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  55. def getBody(): AnyRef
    Definition Classes
    PactDslJsonBodyDslPart
  56. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  57. def getGenerators(): Generators
    Definition Classes
    DslPart
  58. def getMatchers(): Category
    Definition Classes
    DslPart
  59. 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
  60. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  61. 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

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

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

  64. def id(name: String): PactDslJsonBody

    Attribute that must be a numeric identifier

    Attribute that must be a numeric identifier

    name

    attribute name

  65. def id(): PactDslJsonBody

    Attribute named 'id' that must be a numeric identifier

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

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

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

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

    Attributes that must be an integer

    Attributes that must be an integer

    names

    attribute names

  71. def integerType(name: String): PactDslJsonBody

    Attribute that must be an integer

    Attribute that must be an integer

    name

    attribute name

  72. def ipAddress(name: String): PactDslJsonBody

    Attribute that must be an IP4 address

    Attribute that must be an IP4 address

    name

    attribute name

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

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

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

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

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

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

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

    Sets the field to a null value

    Sets the field to a null value

    fieldName

    field name

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

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

    Attributes that can be any number

    Attributes that can be any number

    names

    attribute names

  104. def numberType(name: String): PactDslJsonBody

    Attribute that can be any number

    Attribute that can be any number

    name

    attribute name

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

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

  107. def object(): PactDslJsonBody

    Object element

    Object element

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

    Attribute that is a JSON object

    Attribute that is a JSON object

    name

    field name

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

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

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

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

    Attributes that can be any string

    Attributes that can be any string

    names

    attribute names

  118. def stringType(name: String): PactDslJsonBody

    Attribute that can be any string

    Attribute that can be any string

    name

    attribute name

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

  120. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  121. 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

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

  123. def time(name: String): PactDslJsonBody

    Attribute that must be an ISO formatted time

    Attribute that must be an ISO formatted time

    name

    attribute name

  124. def time(): PactDslJsonBody

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

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

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

  127. def timestamp(name: String): PactDslJsonBody

    Attribute that must be an ISO formatted timestamp

  128. def timestamp(): PactDslJsonBody

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

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

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

  132. def uuid(name: String): PactDslJsonBody

    Attribute that must be encoded as an UUID

    Attribute that must be encoded as an UUID

    name

    attribute name

  133. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  134. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  135. 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