New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mockito calls the real method, stubbing does not work #314
Comments
It is probably because |
I have the same issue.
I would like
|
As far as I know enums can't be mocked. Can I ask why it's an enum? This would be very strange design to me. |
This is an older enum implementation, I think its time to convert it to a class. Thank you for the answer. |
I have the following test:
Inside
interactor
there is this method invocation:interceptSelectedRoute
is a child of the following class:When
stopInterceptingSelectedRoute()
is invoked, I getNullPointerException
becausesubscriptions == null
.I don't understand why
doNothing()
does not work here as expected (meaning that the real method is not invoked). Could you help?The text was updated successfully, but these errors were encountered: