|
43 | 43 | * <h2>Inheritance and Execution Order</h2>
|
44 | 44 | *
|
45 | 45 | * <p>{@code @BeforeAll} methods are inherited from superclasses as long as
|
46 |
| - * they are not <em>hidden</em> (default mode with {@code static} modifier) or |
47 |
| - * <em>overridden</em> or 'superseded' (i.e., replaced based on signature only, |
48 |
| - * irrespective of Java's visibility rules). Furthermore, {@code @BeforeAll} |
49 |
| - * methods from superclasses will be executed before {@code @BeforeAll} methods |
50 |
| - * in subclasses. |
| 46 | + * they are not <em>hidden</em> (default mode with {@code static} modifier), or |
| 47 | + * <em>overridden</em>, or <em>superseded</em> (i.e., replaced based on |
| 48 | + * signature only, irrespective of Java's visibility rules). Furthermore, |
| 49 | + * {@code @BeforeAll} methods from superclasses will be executed before |
| 50 | + * {@code @BeforeAll} methods in subclasses. |
51 | 51 | *
|
52 | 52 | * <p>Similarly, {@code @BeforeAll} methods declared in an interface are
|
53 |
| - * inherited as long as they are not <em>hidden</em> or <em>overridden</em> |
54 |
| - * (or 'superseded', see above), and {@code @BeforeAll} methods from an |
55 |
| - * interface will be executed before {@code @BeforeAll} methods in the class |
56 |
| - * that implements the interface. |
| 53 | + * inherited as long as they are not <em>hidden</em> or <em>overridden</em>, |
| 54 | + * and {@code @BeforeAll} methods from an interface will be executed before |
| 55 | + * {@code @BeforeAll} methods in the class that implements the interface. |
57 | 56 | *
|
58 | 57 | * <p>JUnit Jupiter does not guarantee the execution order of multiple
|
59 | 58 | * {@code @BeforeAll} methods that are declared within a single test class or
|
|
0 commit comments