Join Slack
Powered by
Is it possible to verify(mockk) a service that get...
# getting-started
k
Kenneth
08/26/2020, 2:49 PM
Is it possible to verify(mockk) a service that gets called which is inside a class inside a method of the class being tested?
k
kqr
08/26/2020, 3:10 PM
are you using constructor injection?
k
Kenneth
08/26/2020, 5:10 PM
Yes
Kenneth
08/26/2020, 5:11 PM
On the outer class yes, on the class inside the method, no, it just uses the injected class from the outer class
Open in Slack
Previous
Next