Merge pull request #32411 from quaff

* pr/32411:
  Polish contribution
  Polish Bean Overriding in Tests section of the reference guide

Closes gh-32411
This commit is contained in:
Stéphane Nicoll
2024-03-11 08:57:57 +01:00

View File

@@ -99,9 +99,10 @@ The three annotations introduced above build upon the `@BeanOverride` meta-annot
and associated infrastructure, which allows to define custom bean overriding variants.
In order to provide an extension, three classes are needed:
- a concrete `BeanOverrideProcessor` `<P>`
- a concrete `OverrideMetadata` created by said processor
- an annotation meta-annotated with `@BeanOverride(P.class)`
- A concrete `BeanOverrideProcessor<P>`.
- A concrete `OverrideMetadata` created by said processor.
- An annotation meta-annotated with `@BeanOverride(P.class)`.
The Spring TestContext Framework includes infrastructure classes that support bean
overriding: a `BeanPostProcessor`, a `TestExecutionListener` and a `ContextCustomizerFactory`.