mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
7148b28b2b
This commit introduces integration tests which verify that Bean Overrides (for example, @MockitoBean and @MockitoSpyBean) can select a single candidate bean to override when there are multiple candidates that match the required type. To "select" the desired bean, these tests rely on one of the following. - explicit bean name in the bean override annotation - explicit @Qualifier on the bean override field - explicit @Primary on one of the candidate beans However, the @Primary tests are currently @Disabled until @Primary is honored in the Spring TestContext Framework. See gh-33742