I have a callback based API which I tried to conve...
# coroutines
f
I have a callback based API which I tried to convert it into a hot flow using callbackFlow builder. Would you mind suggesting how to write a unit test which ensures that the API is correctly converted to a hot cold flow? Here is my StackOverflow question: https://stackoverflow.com/questions/70576533
j
I answered on SO. I hope this helps, feel free to comment if you have questions
u
btw dont use mockito, youll thank me later
j
I think OP is using Mockk, not Mockito
u
same thing also use turbine for asserting flows, much better ux
f
Thank you @Joffrey You guides was very useful. I posted a solution based on those.
I would also like to thank @ursus for his recommendation. It will be most helpful if you post your answer in SO.