c

au.com.dius.pact.consumer.dsl

PactDslResponse

class PactDslResponse extends AnyRef

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

Instance Constructors

  1. new PactDslResponse(consumerPactBuilder: ConsumerPactBuilder, request: PactDslRequestWithPath, defaultRequestValues: PactDslRequestWithoutPath, defaultResponseValues: PactDslResponse)

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def body(body: Document): PactDslResponse

    Response body to return

    Response body to return

    body

    Response body as an XML Document

  6. def body(body: DslPart): PactDslResponse

    Response body to return

    Response body to return

    body

    Response body built using the Pact body DSL

  7. def body(body: JSONObject): PactDslResponse

    Response body to return

    Response body to return

    body

    Response body in JSON form

  8. def body(body: Supplier[String], mimeType: ContentType): PactDslResponse

    The body of the request

    The body of the request

    body

    Response body in Java Functional Interface Supplier that must return a string

    mimeType

    the Content-Type response header value

  9. def body(body: Supplier[String], mimeType: String): PactDslResponse

    The body of the request

    The body of the request

    body

    Response body in Java Functional Interface Supplier that must return a string

    mimeType

    the Content-Type response header value

  10. def body(body: Supplier[String]): PactDslResponse

    The body of the request

    The body of the request

    body

    Response body in Java Functional Interface Supplier that must return a string

  11. def body(body: String, mimeType: ContentType): PactDslResponse

    Response body to return

    Response body to return

    body

    body in string form

    mimeType

    the Content-Type response header value

  12. def body(body: String, mimeType: String): PactDslResponse

    Response body to return

    Response body to return

    body

    body in string form

    mimeType

    the Content-Type response header value

  13. def body(body: String): PactDslResponse

    Response body to return

    Response body to return

    body

    Response body in string form

  14. def bodyWithSingleQuotes(body: String, mimeType: ContentType): PactDslResponse

    The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.

    The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.

    body

    Request body in string form

    mimeType

    the Content-Type response header value

  15. def bodyWithSingleQuotes(body: String, mimeType: String): PactDslResponse

    The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.

    The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.

    body

    Request body in string form

    mimeType

    the Content-Type response header value

  16. def bodyWithSingleQuotes(body: String): PactDslResponse

    The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.

    The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.

    body

    Request body in string form

  17. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  22. def given(state: String, params: Map[String, AnyRef]): PactDslWithState

    Adds a provider state to this interaction

    Adds a provider state to this interaction

    state

    Description of the state

    params

    Data parameters for this state

  23. def given(state: String): PactDslWithState

    Adds a provider state to this interaction

    Adds a provider state to this interaction

    state

    Description of the state

  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  25. def headers(headers: Map[String, String]): PactDslResponse

    Response headers to return

    Response headers to return

    Provide the headers you want to validate, other headers will be ignored.

    headers

    key-value pairs of headers

  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. def matchHeader(header: String, regexp: String, headerExample: String): PactDslResponse

    Match a response header.

    Match a response header.

    header

    Header to match

    regexp

    Regular expression to match

    headerExample

    Example value to use

  28. def matchHeader(header: String, regexp: String): PactDslResponse

    Match a response header.

    Match a response header. A random example header value will be generated from the provided regular expression.

    header

    Header to match

    regexp

    Regular expression to match

  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  32. def status(status: Int): PactDslResponse

    Response status code

    Response status code

    status

    HTTP status code

  33. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  34. def toPact(): RequestResponsePact

    Terminates the DSL and builds a pact to represent the interactions

  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. def uponReceiving(description: String): PactDslRequestWithPath

    Description of the request that is expected to be received

    Description of the request that is expected to be received

    description

    request description

  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def toFragment(): PactFragment

    Terminates the DSL and builds a pact fragment to represent the interactions

    Terminates the DSL and builds a pact fragment to represent the interactions

    Deprecated

    Use toPact instead

Inherited from AnyRef

Inherited from Any

Ungrouped