WebserviceMockServer
class WebserviceMockServer(androidContext: Context, val port: Int = DEFAULT_PORT)
Content copied to clipboard
Runs an HTTP server on port after start is called.
Delegates HTTP requests to one of the registered WebserviceMock instances based on the request URI prefix.
See also
Constructors
Link copied to clipboard
fun WebserviceMockServer(androidContext: Context, port: Int = DEFAULT_PORT)
Content copied to clipboard
Types
Properties
Functions
Link copied to clipboard
fun getLastCapturedResponseTimestampMs(mockFilter: (WebserviceMock) -> Boolean): Long?
Content copied to clipboard
Link copied to clipboard
fun registerWebserviceMock(webserviceMockConfig: WebserviceMockConfig, testDescription: String)
Content copied to clipboard
Registers a WebserviceMock instance.