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 dateExpression(name: String, expression: String, format: String): PactDslJsonBody

    Adds a date attribute with the value generated by the date expression

    Adds a date attribute with the value generated by the date expression

    name

    Attribute name

    expression

    Date expression to use to generate the values

    format

    Date format to use

  24. def dateExpression(name: String, expression: String): PactDslJsonBody

    Adds a date attribute formatted as an ISO date with the value generated by the date expression

    Adds a date attribute formatted as an ISO date with the value generated by the date expression

    name

    Attribute name

    expression

    Date expression to use to generate the values

  25. def datetimeExpression(name: String, expression: String, format: String): PactDslJsonBody

    Adds a datetime attribute with the value generated by the expression

    Adds a datetime attribute with the value generated by the expression

    name

    Attribute name

    expression

    Datetime expression to use to generate the values

    format

    Datetime format to use

  26. def datetimeExpression(name: String, expression: String): PactDslJsonBody

    Adds a datetime attribute formatted as an ISO datetime with the value generated by the expression

    Adds a datetime attribute formatted as an ISO datetime with the value generated by the expression

    name

    Attribute name

    expression

    Datetime expression to use to generate the values

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

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

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

    Attributes that must be a decimal values

    Attributes that must be a decimal values

    names

    attribute names

  30. def decimalType(name: String): PactDslJsonBody

    Attribute that must be a decimal value

    Attribute that must be a decimal value

    name

    attribute name

  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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

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

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

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

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

  52. 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
  53. 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
  54. 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
  55. 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
  56. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  57. 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

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

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

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

  69. def id(name: String): PactDslJsonBody

    Attribute that must be a numeric identifier

    Attribute that must be a numeric identifier

    name

    attribute name

  70. def id(): PactDslJsonBody

    Attribute named 'id' that must be a numeric identifier

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

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

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

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

    Attributes that must be an integer

    Attributes that must be an integer

    names

    attribute names

  76. def integerType(name: String): PactDslJsonBody

    Attribute that must be an integer

    Attribute that must be an integer

    name

    attribute name

  77. def ipAddress(name: String): PactDslJsonBody

    Attribute that must be an IP4 address

    Attribute that must be an IP4 address

    name

    attribute name

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

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

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

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

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

  94. 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
  95. 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
  96. 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
  97. 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
  98. 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

  99. 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
  100. 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
  101. 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
  102. 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
  103. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  104. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  105. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  106. def nullValue(fieldName: String): PactDslJsonBody

    Sets the field to a null value

    Sets the field to a null value

    fieldName

    field name

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

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

    Attributes that can be any number

    Attributes that can be any number

    names

    attribute names

  109. def numberType(name: String): PactDslJsonBody

    Attribute that can be any number

    Attribute that can be any number

    name

    attribute name

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

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

  112. def object(): PactDslJsonBody

    Object element

    Object element

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

    Attribute that is a JSON object

    Attribute that is a JSON object

    name

    field name

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

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

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

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

    Attributes that can be any string

    Attributes that can be any string

    names

    attribute names

  123. def stringType(name: String): PactDslJsonBody

    Attribute that can be any string

    Attribute that can be any string

    name

    attribute name

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

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

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

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

  129. def time(name: String): PactDslJsonBody

    Attribute that must be an ISO formatted time

    Attribute that must be an ISO formatted time

    name

    attribute name

  130. def time(): PactDslJsonBody

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

  131. def timeExpression(name: String, expression: String, format: String): PactDslJsonBody

    Adds a time attribute with the value generated by the time expression

    Adds a time attribute with the value generated by the time expression

    name

    Attribute name

    expression

    Time expression to use to generate the values

    format

    Time format to use

  132. def timeExpression(name: String, expression: String): PactDslJsonBody

    Adds a time attribute formatted as an ISO time with the value generated by the time expression

    Adds a time attribute formatted as an ISO time with the value generated by the time expression

    name

    Attribute name

    expression

    Time expression to use to generate the values

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

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

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

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

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

  138. def timestamp(name: String): PactDslJsonBody

    Attribute that must be an ISO formatted timestamp

  139. def timestamp(): PactDslJsonBody

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

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

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

  143. def uuid(name: String): PactDslJsonBody

    Attribute that must be encoded as an UUID

    Attribute that must be encoded as an UUID

    name

    attribute name

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

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