Skip to content

Commit b89aa48

Browse files
committed
Document wrapping semantics for @BeforeAll/@afterall methods in Javadoc
This commit introduces Javadoc for wrapping semantics for @BeforeAll/@afterall methods declared in interfaces. Issue: #1620
1 parent fca28bd commit b89aa48

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

junit-jupiter-api/src/main/java/org/junit/jupiter/api/AfterAll.java

+5
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@
4545
* {@code @AfterAll} methods from superclasses will be executed after
4646
* {@code @AfterAll} methods in subclasses.
4747
*
48+
* <p>Similarly, {@code @AfterAll} methods declared in an interface are
49+
* inherited as long as they are not <em>hidden</em> or <em>overridden</em>,
50+
* and {@code @AfterAll} methods from an interface will be executed after
51+
* {@code @AfterAll} methods in the class that implements the interface.
52+
*
4853
* <h3>Composition</h3>
4954
*
5055
* <p>{@code @AfterAll} may be used as a meta-annotation in order to create

junit-jupiter-api/src/main/java/org/junit/jupiter/api/BeforeAll.java

+5
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@
4545
* {@code @BeforeAll} methods from superclasses will be executed before
4646
* {@code @BeforeAll} methods in subclasses.
4747
*
48+
* <p>Similarly, {@code @BeforeAll} methods declared in an interface are
49+
* inherited as long as they are not <em>hidden</em> or <em>overridden</em>,
50+
* and {@code @BeforeAll} methods from an interface will be executed before
51+
* {@code @BeforeAll} methods in the class that implements the interface.
52+
*
4853
* <h3>Composition</h3>
4954
*
5055
* <p>{@code @BeforeAll} may be used as a meta-annotation in order to create

0 commit comments

Comments
 (0)