Skip to content

Commit c804c80

Browse files
committed
Document TestPlan.containsTests()
1 parent 77c39f2 commit c804c80

File tree

1 file changed

+11
-0
lines changed
  • junit-platform-launcher/src/main/java/org/junit/platform/launcher

1 file changed

+11
-0
lines changed

junit-platform-launcher/src/main/java/org/junit/platform/launcher/TestPlan.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,18 @@ public Set<TestIdentifier> getDescendants(TestIdentifier parent) {
197197
return unmodifiableSet(result);
198198
}
199199

200+
/**
201+
* Return whether this test plan contains any tests.
202+
*
203+
* <p>A test plan contains tests, if at least one of the contained engine
204+
* descriptors {@linkplain TestDescriptor#containsTests(TestDescriptor)
205+
* contains tests}.
206+
*
207+
* @return {@code true} if this test plan contains tests
208+
* @see TestDescriptor#containsTests(TestDescriptor)
209+
*/
200210
public boolean containsTests() {
201211
return containsTests;
202212
}
213+
203214
}

0 commit comments

Comments
 (0)