TestDescriptor for tests based on the JUnit Platform Suite API.
The default display name is the simple name of the class.
SuiteDisplayName
| Modifier and Type | Class and Description |
|---|---|
| private static record | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ConfigurationParameters | |
| private final SuiteLauncherDiscoveryRequestBuilder | |
| private final Boolean | |
| private @Nullable SuiteLauncher | |
| private @Nullable LauncherDiscoveryResult | |
| private final SuiteTestDescriptor. | |
| private final OutputDirectoryCreator | |
| pack-priv static final String | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| pack-priv | SuiteTestDescriptor(UniqueId id, Class<?> suiteClass, ConfigurationParameters configurationParameters, OutputDirectoryCreator outputDirectoryCreator, EngineDiscoveryListener discoveryListener, DiscoveryIssueReporter issueReporter)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv SuiteTestDescriptor | |
| pack-priv SuiteTestDescriptor | |
| private TestExecutionResult | computeTestExecutionResult(@Nullable TestExecutionSummary summary, ThrowableCollector throwableCollector)
|
| pack-priv void | |
| pack-priv void | execute(EngineExecutionListener executionListener, NamespacedHierarchicalStore<Namespace> requestLevelStore, CancellationToken cancellationToken)
|
| private void | |
| private void | |
| private @Nullable TestExecutionSummary | executeTests(EngineExecutionListener executionListener, NamespacedHierarchicalStore<Namespace> requestLevelStore, CancellationToken cancellationToken, ThrowableCollector throwableCollector)
|
| private static Boolean | |
| private static String | |
| public TestDescriptor. | getType()
Implements org. Determine the |
| public boolean | mayRegisterTests()
Overrides default org. Determine if this descriptor may register dynamic tests during execution. |
| configurationParameters | back to summary |
|---|---|
| private final ConfigurationParameters configurationParameters | |
| discoveryRequestBuilder | back to summary |
|---|---|
| private final SuiteLauncherDiscoveryRequestBuilder discoveryRequestBuilder | |
| failIfNoTests | back to summary |
|---|---|
| private final Boolean failIfNoTests | |
| launcher | back to summary |
|---|---|
| private @Nullable SuiteLauncher launcher | |
| launcherDiscoveryResult | back to summary |
|---|---|
| private @Nullable LauncherDiscoveryResult launcherDiscoveryResult | |
| lifecycleMethods | back to summary |
|---|---|
| private final SuiteTestDescriptor. | |
| outputDirectoryCreator | back to summary |
|---|---|
| private final OutputDirectoryCreator outputDirectoryCreator | |
| SEGMENT_TYPE | back to summary |
|---|---|
| pack-priv static final String SEGMENT_TYPE | |
| suiteClass | back to summary |
|---|---|
| private final Class<?> suiteClass | |
| SuiteTestDescriptor | back to summary |
|---|---|
| pack-priv SuiteTestDescriptor(UniqueId id, Class<?> suiteClass, ConfigurationParameters configurationParameters, OutputDirectoryCreator outputDirectoryCreator, EngineDiscoveryListener discoveryListener, DiscoveryIssueReporter issueReporter) | |
| addDiscoveryRequestFrom | back to summary |
|---|---|
| pack-priv SuiteTestDescriptor addDiscoveryRequestFrom(Class<?> suiteClass) | |
| addDiscoveryRequestFrom | back to summary |
|---|---|
| pack-priv SuiteTestDescriptor addDiscoveryRequestFrom(UniqueId uniqueId) | |
| computeTestExecutionResult | back to summary |
|---|---|
| private TestExecutionResult computeTestExecutionResult(@Nullable TestExecutionSummary summary, ThrowableCollector throwableCollector) | |
| discover | back to summary |
|---|---|
| pack-priv void discover() | |
| execute | back to summary |
|---|---|
| pack-priv void execute(EngineExecutionListener executionListener, NamespacedHierarchicalStore<Namespace> requestLevelStore, CancellationToken cancellationToken) | |
| executeAfterSuiteMethods | back to summary |
|---|---|
| private void executeAfterSuiteMethods(ThrowableCollector throwableCollector) | |
| executeBeforeSuiteMethods | back to summary |
|---|---|
| private void executeBeforeSuiteMethods(ThrowableCollector throwableCollector) | |
| executeTests | back to summary |
|---|---|
| private @Nullable TestExecutionSummary executeTests(EngineExecutionListener executionListener, NamespacedHierarchicalStore<Namespace> requestLevelStore, CancellationToken cancellationToken, ThrowableCollector throwableCollector) | |
| getFailIfNoTests | back to summary |
|---|---|
| private static Boolean getFailIfNoTests(Class<?> suiteClass) | |
| getSuiteDisplayName | back to summary |
|---|---|
| private static String getSuiteDisplayName(Class<?> suiteClass, DiscoveryIssueReporter issueReporter) | |
| getType | back to summary |
|---|---|
| public TestDescriptor. Implements org. Doc from org. Determine the
| |
| mayRegisterTests | back to summary |
|---|---|
| public boolean mayRegisterTests() Overrides default org. Doc from org. Determine if this descriptor may register dynamic tests during execution. The default implementation assumes tests are usually known during
discovery and thus returns
| |
| Modifier and Type | Field and Description |
|---|---|
| private final EngineDiscoveryListener | discoveryListener
Record Component accessed by discoveryListener(). |
| private final BiFunction | issueTransformer
Record Component accessed by issueTransformer(). |
| private static final Predicate |
| Access | Constructor and Description |
|---|---|
| private | DiscoveryIssueForwardingListener(EngineDiscoveryListener discoveryListener, BiFunction<UniqueId, DiscoveryIssue, DiscoveryIssue> issueTransformer)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static SuiteTestDescriptor. | |
| public EngineDiscoveryListener | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public void | issueEncountered(UniqueId engineUniqueId, DiscoveryIssue issue)
Overrides default org. Called when the engine with the supplied |
| public BiFunction | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| discoveryListener | back to summary |
|---|---|
| private final EngineDiscoveryListener discoveryListener Record Component accessed by discoveryListener(). | |
| issueTransformer | back to summary |
|---|---|
| private final BiFunction<UniqueId, DiscoveryIssue, DiscoveryIssue> issueTransformer Record Component accessed by issueTransformer(). | |
| SUITE_SEGMENTS | back to summary |
|---|---|
| private static final Predicate<UniqueId. | |
| DiscoveryIssueForwardingListener | back to summary |
|---|---|
| private DiscoveryIssueForwardingListener(EngineDiscoveryListener discoveryListener, BiFunction<UniqueId, DiscoveryIssue, DiscoveryIssue> issueTransformer) | |
| create | back to summary |
|---|---|
| pack-priv static SuiteTestDescriptor. | |
| discoveryListener | back to summary |
|---|---|
| public EngineDiscoveryListener discoveryListener() Record Component getter of discoveryListener. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| issueEncountered | back to summary |
|---|---|
| public void issueEncountered(UniqueId engineUniqueId, DiscoveryIssue issue) Overrides default org. Doc from org. Called when the engine with the supplied
| |
| issueTransformer | back to summary |
|---|---|
| public BiFunction Record Component getter of issueTransformer. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final List | |
| pack-priv final List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| afterSuite | back to summary |
|---|---|
| pack-priv final List<Method> afterSuite | |
| beforeSuite | back to summary |
|---|---|
| pack-priv final List<Method> beforeSuite | |
| LifecycleMethods | back to summary |
|---|---|
| pack-priv LifecycleMethods(Class<?> suiteClass, DiscoveryIssueReporter issueReporter) | |