Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run
Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions
Details
Deploy Docs / Dispatch docs deployment (push) Waiting to run
Details
Prior to this commit, the BeanOverrideBeanFactoryPostProcessor rejected any attempt to override a non-singleton bean; however, due to interest from the community, we have decided to provide support for overriding non-singleton beans via the Bean Override mechanism — for example, when using @MockitoBean, @MockitoSpyBean, and @TestBean. With this commit, we now support Bean Overrides for non-singletons: for standard JVM runtimes as well as AOT processing and AOT runtimes. This commit also documents that non-singletons will effectively be converted to singletons when overridden and logs a warning similar to the following. WARN: BeanOverrideBeanFactoryPostProcessor - Converting 'prototype' scoped bean definition 'myBean' to a singleton. See gh-33602 See gh-32933 See gh-33800 Closes gh-35574 |
||
---|---|---|
.. | ||
annotations | ||
mockmvc | ||
testcontext-framework | ||
annotations.adoc | ||
appendix.adoc | ||
integration.adoc | ||
introduction.adoc | ||
mockmvc.adoc | ||
resources.adoc | ||
resttestclient.adoc | ||
spring-mvc-test-client.adoc | ||
support-jdbc.adoc | ||
testcontext-framework.adoc | ||
unit.adoc | ||
webtestclient.adoc |