Kulwinder Singh
MockKException: no answer found for: MyClass(#1).sendMessage(okhttp3.RequestBody$2@4ed4bd33)
any()
every { myClass.sendMessage(MockRequest.createTestBody(value="text")) } answers { something } .... class SomeObject(myClass:MyClass){ fun doSomething(text: String): Flowable<Result<Boolean>> { val request = MockRequest.createTestBody(text) myClass.sendMessage(request) } } ....
Matt Thompson
createTestBody
equals
RequestBody
A modern programming language that makes developers happier.