Annotation Interface SpringExtensionConfig
@SpringExtensionConfig is a type-level annotation that can be used to
configure the behavior of the SpringExtension.
This annotation is only applicable to @Nested
test class hierarchies and should be applied to the top-level enclosing class
of a @Nested test class hierarchy. Consequently, there is no need to
declare this annotation on a test class that does not contain @Nested
test classes.
Note that
@NestedTestConfiguration
does not apply to this annotation: @SpringExtensionConfig will always be
detected within a @Nested test class hierarchy, effectively disregarding
any @NestedTestConfiguration(OVERRIDE) declarations.
- Since:
- 7.0
- Author:
- Sam Brannen
- See Also:
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionbooleanSpecify whether theSpringExtensionshould use a test-class scopedExtensionContextwithin@Nestedtest class hierarchies.
-
Element Details
-
useTestClassScopedExtensionContext
boolean useTestClassScopedExtensionContextSpecify whether theSpringExtensionshould use a test-class scopedExtensionContextwithin@Nestedtest class hierarchies.By default, the
SpringExtensionuses a test-method scopedExtensionContext. Thus, there is no need to declare this annotation attribute with a value offalse.- See Also:
-