@MockitoSpyBean behavior different from @SpyBean #43245
Labels
for: external-project
For an external project and not something we can fix
status: invalid
An issue that we don't feel is valid
Version: Spring Boot 3.4.0-RC1
Hi Spring team,
I'm not sure if this belongs to Spring Boot or Spring framework since the new annotation is part of the Spring framework but the old annotation is part of Spring Boot.
Previously, when using @SpyBean I did not have to create a bean instance in my test context to spy on it.
This is now different as stated in the docs and the blog post (https://docs.spring.io/spring-framework/reference/testing/annotations/integration-spring/annotation-mockitobean.html).
If this is intended behavior, feel free to close this issue since it is clearly documented.
Otherwise, I can create a reproducer, I think.
The text was updated successfully, but these errors were encountered: