Document @SpringExtensionConfig in the reference manual
This commit also updates the Javadoc for the SpringExtension and
@SpringExtensionConfig to point out that the SpringExtension always
uses a test-class scoped ExtensionContext if
@TestInstance(Lifecycle.PER_CLASS) semantics are in effect.
Closes gh-36240
@ -5,6 +5,7 @@ The following annotations are supported when used in conjunction with the
@@ -5,6 +5,7 @@ The following annotations are supported when used in conjunction with the
@ -14,6 +15,47 @@ and JUnit Jupiter (that is, the programming model in JUnit):
@@ -14,6 +15,47 @@ and JUnit Jupiter (that is, the programming model in JUnit):
@ -392,6 +392,17 @@ any of its subclasses and nested classes. Thus, you may annotate a top-level tes
@@ -392,6 +392,17 @@ any of its subclasses and nested classes. Thus, you may annotate a top-level tes
with `@NestedTestConfiguration`, and that will apply to all of its nested test classes
recursively.
[NOTE]
====
As of Spring Framework 7.0, the `SpringExtension` uses a test-method scoped
`ExtensionContext` within `@Nested` test class hierarchies by default. However, the
`SpringExtension` can be configured to use a test-class scoped `ExtensionContext`.