hi, i am a newbie to ktor. We are using kotr for a...
# ktor
r
hi, i am a newbie to ktor. We are using kotr for android and trying to write the unit test for ktor network call with okhttp. how to mock the client enginfe for unit test? Thanks
a
You can use the MockEngine to prevent making network calls by a client.
r
Thats not working for me…. Are there any examples?
a
Here is an example. What exactly isn’t working for you?