MockServerInterface

interface MockServerInterface

Functions

Link copied to clipboard
abstract fun enqueue(mockResponse: MockResponse)

Enqueue a response

Link copied to clipboard
abstract suspend fun stop()

Stops the server

Link copied to clipboard
abstract fun takeRequest(): MockRequest

Returns a request from the recorded requests or throws if no request has been received

Link copied to clipboard
abstract suspend fun url(): String

Returns the root url for this server

Properties

Link copied to clipboard
abstract val mockServerHandler: MockServerHandler

The mock server handler used to respond to requests.

Inheritors

Link copied to clipboard