File tree 1 file changed +7
-2
lines changed
spring-test/src/main/java/org/springframework/test/context
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 33
33
* not propagate to inner test classes (see {@link EnclosingConfiguration#OVERRIDE}).
34
34
* Consequently, inner test classes will have to declare their own Spring test
35
35
* configuration annotations. If you wish for an inner test class to inherit
36
- * configuration from its enclosing class, annotate the enclosing class with
37
- * {@code @NestedTestConfiguration(EnclosingConfiguration.INHERIT)}.
36
+ * configuration from its enclosing class, annotate either the inner test class
37
+ * or the enclosing class with
38
+ * {@code @NestedTestConfiguration(EnclosingConfiguration.INHERIT)}. Note that
39
+ * a {@code @NestedTestConfiguration(...)} declaration is inherited within the
40
+ * superclass hierarchy as well as within the enclosing class hierarchy. Thus,
41
+ * there is no need to redeclare the annotation unless you wish to switch the
42
+ * mode.
38
43
*
39
44
* <p>This annotation may be used as a <em>meta-annotation</em> to create custom
40
45
* <em>composed annotations</em>.
You can’t perform that action at this time.
0 commit comments