Skip to content

Commit

Permalink
Improve Javadoc for @NestedTestConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Oct 12, 2020
1 parent e9d0dd1 commit 3d28f58
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@
* not propagate to inner test classes (see {@link EnclosingConfiguration#OVERRIDE}).
* Consequently, inner test classes will have to declare their own Spring test
* configuration annotations. If you wish for an inner test class to inherit
* configuration from its enclosing class, annotate the enclosing class with
* {@code @NestedTestConfiguration(EnclosingConfiguration.INHERIT)}.
* configuration from its enclosing class, annotate either the inner test class
* or the enclosing class with
* {@code @NestedTestConfiguration(EnclosingConfiguration.INHERIT)}. Note that
* a {@code @NestedTestConfiguration(...)} declaration is inherited within the
* superclass hierarchy as well as within the enclosing class hierarchy. Thus,
* there is no need to redeclare the annotation unless you wish to switch the
* mode.
*
* <p>This annotation may be used as a <em>meta-annotation</em> to create custom
* <em>composed annotations</em>.
Expand Down

0 comments on commit 3d28f58

Please sign in to comment.