-
Notifications
You must be signed in to change notification settings - Fork 38.4k
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
@SpyBean
can be stubbed, but @MockitoSpyBean
cannot be stubbed
#34516
Comments
@SpyBean
can be stubbed, but @MockitoSpyBean
cannot be stubbed
Hi @JavaDevaraj, That exception can occur when If it's If it's non-null and still not a mock/spy, that would could be due to a bug (which may have already been fixed). In light of the above, your issue could be a duplicate of one of the following.
Unfortunately, the examples you have provided do not provide any context. We have no way of inferring where you declared the Please review the aforementioned issues to see if one of those addresses your issue. If you wish for us to investigate this further, please provide a simple application that demonstrates the issue (preferably something that we can download and run such as a an application in a public Git repository or a ZIP file attached to this issue). Regards, Sam |
@JavaDevaraj Please note see #33935 |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
In Spring Boot 3.3:
It's working fine....
but after upgrading to Spring Boot 3.4:
I'm getting the following exception.
The text was updated successfully, but these errors were encountered: