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
Impossible to make mock of inner object for spyk #795
Comments
Since your inner object is being instantiated internally, you need to mock the
Does this make sense? |
still trying to call original |
@Raibaz I think I have a similar issue, please could you check the code below:
Debug shows that but eventually get:
What am I missing here ? With given example wanted to check if particular functions was triggered on the mock object. |
@Raibaz solution with |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you are sure that this issue is important and should not be marked as |
I'm trying to test class with partial mocking, so I decide to use spyk
And I need to verify that internally created instance of anonymous class call method.
But problem that someField is still not mocked and call original method of this class
The text was updated successfully, but these errors were encountered: