Browse Source

Merge pull request #32411 from quaff

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

Closes gh-32411
pull/32469/head
Stéphane Nicoll 2 years ago
parent
commit
4e5723ca9e
  1. 7
      framework-docs/modules/ROOT/pages/testing/annotations/integration-spring/annotation-beanoverriding.adoc

7
framework-docs/modules/ROOT/pages/testing/annotations/integration-spring/annotation-beanoverriding.adoc

@ -99,9 +99,10 @@ The three annotations introduced above build upon the `@BeanOverride` meta-annot @@ -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`.

Loading…
Cancel
Save