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
01/04/2022, 10:40 AM
I answered on SO. I hope this helps, feel free to comment if you have questions
01/04/2022, 11:33 AM
btw dont use mockito, youll thank me later
01/04/2022, 11:35 AM
I think OP is using Mockk, not Mockito
01/04/2022, 11:37 AM
also use turbine for asserting flows, much better ux
01/04/2022, 3:48 PM
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.