Skip to content

Commit

Permalink
Update Javadoc for TestInstancePreDestroyCallback regarding scope
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Mar 12, 2020
1 parent e5985c0 commit 0dcbc71
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@
* the test instance, invoking custom clean-up methods on the test instance, etc.
*
* <p>Extensions that implement {@code TestInstancePreDestroyCallback} must be
* registered at the class level.
* registered at the class level if the test class is configured with
* {@link org.junit.jupiter.api.TestInstance.Lifecycle @TestInstance(Lifecycle.PER_CLASS)}
* semantics. If the test class is configured with
* {@link org.junit.jupiter.api.TestInstance.Lifecycle @TestInstance(Lifecycle.PER_METHOD)}
* semantics, {@code TestInstancePreDestroyCallback} extensions may be registered
* at the class level or at the method level. In the latter case, the
* {@code TestInstancePreDestroyCallback} extension will only be applied to the
* test method for which it is registered.
*
* <h3>Constructor Requirements</h3>
*
Expand Down

0 comments on commit 0dcbc71

Please sign in to comment.