-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
spy() serializable support #537
Comments
Interesting idea. |
Its a much needed feature for classes using spark and other related frameworks. |
mock(class, |
I have faced the same situation. |
Dear @bric3, While this:
indeed works, it should be treated only as a workaround until the framework fixes it's behavior. |
check that
Note that some configuration are impossible to mock via Mockito
(same as any question on stackoverflow.com)
This is an issue for the latest version. Support serializable() for the mock() is a great feature!
According to the source code. spy also uses mock()
Why don't you support mockSetting argument for
spy()
like below code snippet? Is there any problem when it comes to call.serializable()
with.spiedInstance()
The text was updated successfully, but these errors were encountered: