We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 5.4.0 throws an exception when a mock object is passed into Mockito.spy(). See
Mockito.spy()
Mockito.spy(Mockito.mock(Type.class))
Mockito.spy(<object annotated with @Mock>)
The text was updated successfully, but these errors were encountered:
Completed in v0.11.0.
Sorry, something went wrong.
#56: Add inspection to report creating spies on mock objects
bcb054d
picimako
No branches or pull requests
Summary
Mockito 5.4.0 throws an exception when a mock object is passed into
Mockito.spy()
. SeeTasks
Mockito.spy()
being passed in a mock object. Constructs can be like:Mockito.spy(Mockito.mock(Type.class))
Mockito.spy(<object annotated with @Mock>)
Questions
Mockito.spy()
as well?The text was updated successfully, but these errors were encountered: