Does anyone have recommendations on testing code t...
# kotlin-fuel
e
Does anyone have recommendations on testing code that depends on Fuel? E.g. I have a client that makes some requests and currently it just calls
url.httpPost()
for instance, but I would like to somehow validate the requests that are made
Perhaps there's some interface that could be mocked and injected into the client, to make requests as
httpClient.post(url, params...)
instead? (which could be verified on the mock)
d
Fuel has a test suite that also mocks the calls. You can take inspiration from there 🙂
âš¡ 1
e
Thanks, I'll try that 🙂