MockEngine
HttpClientEngine for writing tests without network.
Inheritors
Types
Link copied to clipboard
Link copied to clipboard
class Queue(val config: MockEngineConfig = MockEngineConfig().apply {
// Every time a handler is called, it gets disposed. So make sure enough handlers are registered for
// requests you intend to make!
reuseHandlers = false
}) : MockEngine
Create a MockEngine with an empty MockEngineConfig - meaning no request handlers are registered by default. This means that you need to separately call enqueue to add one or more handlers before making any requests.