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
Joffrey
01/04/2022, 10:40 AM
I answered on SO. I hope this helps, feel free to comment if you have questions
u
ursus
01/04/2022, 11:33 AM
btw dont use mockito, youll thank me later
j
Joffrey
01/04/2022, 11:35 AM
I think OP is using Mockk, not Mockito
u
ursus
01/04/2022, 11:37 AM
same thing
also use turbine for asserting flows, much better ux
f
farzad
01/04/2022, 3:48 PM
Thank you @Joffrey
You guides was very useful.
I posted a solution based on those.
farzad
01/04/2022, 3:51 PM
I would also like to thank @ursus for his recommendation. It will be most helpful if you post your answer in SO.