diff --git a/junit-jupiter-api/src/main/java/org/junit/jupiter/api/TestInstance.java b/junit-jupiter-api/src/main/java/org/junit/jupiter/api/TestInstance.java index 7b4d9f23cbd1..d71e3e408afb 100644 --- a/junit-jupiter-api/src/main/java/org/junit/jupiter/api/TestInstance.java +++ b/junit-jupiter-api/src/main/java/org/junit/jupiter/api/TestInstance.java @@ -23,8 +23,25 @@ * test class. * *

If {@code @TestInstance} is not declared on a test class, the lifecycle - * mode will default to {@link Lifecycle#PER_METHOD PER_METHOD}. Note, however, - * that the lifecycle mode is inherited within test class hierarchies. + * mode will implicitly default to {@link Lifecycle#PER_METHOD PER_METHOD}. + * Note, however, that an explicit lifecycle mode is inherited within + * a test class hierarchy. + * + *

Use Cases

+ *

Setting the test instance lifecycle mode to {@link Lifecycle.PER_CLASS + * PER_CLASS} enables the following features. + *

* * @author Sam Brannen * @since 5.0