You are currently viewing Testing retrofit calls

Testing retrofit calls

Hi I’m fairly new to kotlin and wanted to know how exactly can I test the retrofit rest calls. Right now the unit test cases don’t wait for the callback and hence am not able to assert the response in the test. Is there any way I can make the test case wait until the callback is done? Please help!

submitted by /u/wertroit
[link] [comments]