https://kotlinlang.org logo
#mockk
Title
# mockk
a

Anthony f

01/17/2019, 3:22 PM
Here is the test template, that I try to run.
I would like to shunt the behavior of MyDependency.
To do that I expect get the instance of the callback used, and then answer callback.onSuccess
This example simplify a real case, where MyDependency deal with WS call
o

oleksiyp

01/18/2019, 2:25 PM
Please ask question or submit issue in GH. Not sure I understood your case.
a

Anthony f

01/21/2019, 4:09 PM
@oleksiyp here is the issue https://github.com/mockk/mockk/issues/230
if the answer is an advice about code architecture (because this is not testable), that also fine for me
o

oleksiyp

01/21/2019, 4:10 PM
Right
Thanks, will check it a bit later
2 Views