jw
Joan Colmenero
private val dispatcher: Dispatcher = object : Dispatcher() { @Throws(InterruptedException::class) override fun dispatch(request: RecordedRequest): MockResponse { if (request.path == "<http://localhost:8000/api/example1>") { return MockResponse() .setResponseCode(404) } return MockResponse().setResponseCode(404) } }
A modern programming language that makes developers happier.