MockRoundTrip

data class MockRoundTrip(val expected: <Error class: unknown class>?, val respondWith: <Error class: unknown class>? = null)

An expected HttpRequest with the response that should be returned by the engine

Parameters

expected

the expected request. If null no assertions are made on the request

respondWith

the response to return for this request. If null it defaults to an empty 200-OK response

Constructors

Link copied to clipboard
constructor(expected: <Error class: unknown class>?, respondWith: <Error class: unknown class>? = null)

Properties

Link copied to clipboard
val expected: <Error class: unknown class>?
Link copied to clipboard
val respondWith: <Error class: unknown class>? = null