spring-framework/framework-docs
Sam Brannen 1c87e4795d Introduce enforceOverride flag in @⁠TestBean and @⁠MockitoBean
Prior to this commit, @⁠MockitoBean could be used to either create or
replace a bean definition, but @⁠TestBean could only be used to replace
a bean definition.

However, Bean Override implementations should require the presence of
an existing bean definition by default (i.e. literally "override" by
default), while giving the user the option to have a new bean
definition created if desired.

To address that, this commit introduces a new `enforceOverride`
attribute in @⁠TestBean and @⁠MockitoBean that defaults to true but
allows the user to decide if it's OK to create a bean for a nonexistent
bean definition.

Closes gh-33613
2024-09-30 14:32:53 +02:00
..
modules/ROOT Introduce enforceOverride flag in @⁠TestBean and @⁠MockitoBean 2024-09-30 14:32:53 +02:00
src Merge branch '6.1.x' 2024-09-11 17:17:38 +02:00
antora-playbook.yml Build documentation branches only for 6.1 and later 2024-08-16 17:04:55 +02:00
antora.yml Merge branch '6.1.x' 2024-09-16 16:59:31 +02:00
framework-docs.gradle Merge branch '6.1.x' 2024-07-26 10:05:06 +02:00
package.json Modernize Antora Build 2024-05-22 10:20:20 +02:00