Skip to content

Commit 2045987

Browse files
committed
Document limitation of AbstractExecutionConditionTests
1 parent f5485fa commit 2045987

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

junit-jupiter-engine/src/test/java/org/junit/jupiter/api/condition/AbstractExecutionConditionTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@
4040
* Abstract base class for unit testing a concrete {@link ExecutionCondition}
4141
* implementation.
4242
*
43+
* <p><strong>WARNING</strong>: this abstract base class currently does not
44+
* support tests in {@code @Nested} test classes within the
45+
* {@linkplain #getTestClass() test class}, since {@link #beforeEach(TestInfo)}
46+
* instantiates the test class using the no-args default constructor.
47+
*
4348
* @since 5.1
4449
*/
4550
@TestInstance(Lifecycle.PER_CLASS)

0 commit comments

Comments
 (0)