-
Notifications
You must be signed in to change notification settings - Fork 40.9k
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
Deprecate @MockBean and @SpyBean #39864
Conversation
- Deprecate Deprecate @MockBean and @SpyBean in favor of Spring Framekworks 6.2.0 @MockitoBean and @MockitoSpy. See spring-projects/spring-framework@e1bbdf0 - Migrate usages of @MockBean and @SpyBean to @MockitoBean an d @MockitoSpy spring-projects#39860 Signed-off-by: Jakob Wanger <[email protected]>
FTR, I am maintaining a branch of the changes required to upgrade to SF |
Closing PR /draft based on comments above. |
Sounds good, that is no problem 👍 |
Here is what's needed so far to get a green build with Spring Framework Regarding Mockito support, I had to remove the automatic intialization of mocks as the support in the core framework does that now and they were trumping each other. Given that the support is going to be deprecated, tests should still use the existing infrastructure, rather than moving to the new annotations. It's a different story for smoke tests & co though. |
Should we leave all tests using the Mockito outside of smoke tests and co untouched, or should we only leave the unit tests for the Mockito support untouched? |
- Deprecate Deprecate @MockBean and @SpyBean in favor of Spring Framework 6.2's @MockitoBean and @MockitoSpy - Migrate usages of @MockBean and @SpyBean to @MockitoBean and @MockitoSpy Signed-off-by: Jakob Wanger <[email protected]> See gh-39864
Thank you, @wanger26. |
Change Summary
Issue