Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- abortOnFailure() - Static method in class org.junit.platform.launcher.listeners.discovery.LauncherDiscoveryListeners
-
Create a
LauncherDiscoveryListener
that aborts test discovery on failures. - accept(TestPlan.Visitor) - Method in class org.junit.platform.launcher.TestPlan
-
Accept the supplied
TestPlan.Visitor
for a depth-first traversal of the test plan. - add(TestIdentifier) - Method in class org.junit.platform.launcher.TestPlan
-
Deprecated.Calling this method is no longer supported and will throw an exception.
- addInternal(TestIdentifier) - Method in class org.junit.platform.launcher.TestPlan
- addLauncherDiscoveryListeners(LauncherDiscoveryListener...) - Method in class org.junit.platform.launcher.core.LauncherConfig.Builder
-
Add all of the supplied launcher discovery listeners to the configuration.
- addLauncherSessionListeners(LauncherSessionListener...) - Method in class org.junit.platform.launcher.core.LauncherConfig.Builder
-
Add all of the supplied launcher session listeners to the configuration.
- addPostDiscoveryFilters(PostDiscoveryFilter...) - Method in class org.junit.platform.launcher.core.LauncherConfig.Builder
-
Add all of the supplied
filters
to the configuration. - addTestEngines(TestEngine...) - Method in class org.junit.platform.launcher.core.LauncherConfig.Builder
-
Add all of the supplied test engines to the configuration.
- addTestExecutionListeners(TestExecutionListener...) - Method in class org.junit.platform.launcher.core.LauncherConfig.Builder
-
Add all of the supplied test execution listeners to the configuration.
- apply(TestEngine) - Method in class org.junit.platform.launcher.EngineFilter
B
- build() - Method in class org.junit.platform.launcher.core.LauncherConfig.Builder
-
Build the
LauncherConfig
that has been configured via this builder. - build() - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Build the
LauncherDiscoveryRequest
that has been configured via this builder. - builder() - Static method in interface org.junit.platform.launcher.core.LauncherConfig
-
Create a new
LauncherConfig.Builder
.
C
- CAPTURE_MAX_BUFFER_DEFAULT - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Default maximum number of bytes for buffering to use per thread and output type if output capturing is enabled.
- CAPTURE_MAX_BUFFER_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Property name used to configure the maximum number of bytes for buffering to use per thread and output type if output capturing is enabled: "junit.platform.output.capture.maxBuffer"
- CAPTURE_STDERR_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Property name used to enable capturing output to
System.err
: "junit.platform.output.capture.stderr" - CAPTURE_STDOUT_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Property name used to enable capturing output to
System.out
: "junit.platform.output.capture.stdout" - close() - Method in interface org.junit.platform.launcher.LauncherInterceptor
-
Closes this interceptor.
- close() - Method in interface org.junit.platform.launcher.LauncherSession
-
Close this session and notify all registered
LauncherSessionListeners
. - composite(List<LauncherDiscoveryListener>) - Static method in class org.junit.platform.launcher.listeners.discovery.LauncherDiscoveryListeners
- composite(List<LauncherSessionListener>) - Static method in class org.junit.platform.launcher.listeners.session.LauncherSessionListeners
- configurationParameter(String, String) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Add the supplied configuration parameter to the request.
- configurationParameters(Map<String, String>) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Add all of the supplied configuration parameters to the request.
- containsTests() - Method in class org.junit.platform.launcher.TestPlan
-
Return whether this test plan contains any tests.
- countTestIdentifiers(Predicate<? super TestIdentifier>) - Method in class org.junit.platform.launcher.TestPlan
-
Count all
TestIdentifiers
that satisfy the given predicate. - create() - Static method in class org.junit.platform.launcher.core.LauncherFactory
- create(Optional<String>) - Static method in class org.junit.platform.launcher.listeners.OutputDir
- create(LauncherConfig) - Static method in class org.junit.platform.launcher.core.LauncherFactory
-
Factory method for creating a new
Launcher
using the suppliedLauncherConfig
. - createFile(String, String) - Method in class org.junit.platform.launcher.listeners.OutputDir
D
- DEACTIVATE_ALL_LISTENERS_PATTERN - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Wildcard pattern which signals that all listeners registered via the
ServiceLoader
mechanism should be deactivated: "*" - DEACTIVATE_LISTENERS_PATTERN_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Property name used to provide patterns for deactivating listeners registered via the
ServiceLoader
mechanism: "junit.platform.execution.listeners.deactivate" - DEFAULT - Static variable in interface org.junit.platform.launcher.core.LauncherConfig
-
The default
LauncherConfig
which uses automatic registration for test engines, supported listeners, and post-discovery filters. - DEFAULT_DISCOVERY_LISTENER_CONFIGURATION_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Property name used to set the default discovery listener that is added to all : "junit.platform.discovery.listener.default"
- DEFAULT_OUTPUT_FILE_PREFIX - Static variable in class org.junit.platform.launcher.listeners.UniqueIdTrackingListener
-
The default prefix for the name of the file generated by the
UniqueIdTrackingListener
: "junit-platform-unique-ids" - discover(LauncherDiscoveryRequest) - Method in interface org.junit.platform.launcher.Launcher
-
Discover tests and build a
TestPlan
according to the suppliedLauncherDiscoveryRequest
by querying all registered engines and collecting their results. - discover(LauncherDiscoveryRequest, EngineDiscoveryOrchestrator.Phase) - Method in class org.junit.platform.launcher.core.EngineDiscoveryOrchestrator
-
Discovers tests for the supplied request in the supplied phase using the configured test engines.
- discover(LauncherDiscoveryRequest, EngineDiscoveryOrchestrator.Phase, UniqueId) - Method in class org.junit.platform.launcher.core.EngineDiscoveryOrchestrator
-
Discovers tests for the supplied request in the supplied phase using the configured test engines to be used by the suite engine.
- DISCOVERY - Enum constant in enum class org.junit.platform.launcher.core.EngineDiscoveryOrchestrator.Phase
- DRY_RUN_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Property name used to enable dry-run mode for test execution.
- dynamicTestRegistered(TestIdentifier) - Method in class org.junit.platform.launcher.listeners.LoggingListener
- dynamicTestRegistered(TestIdentifier) - Method in class org.junit.platform.launcher.listeners.SummaryGeneratingListener
- dynamicTestRegistered(TestIdentifier) - Method in interface org.junit.platform.launcher.TestExecutionListener
-
Called when a new, dynamic
TestIdentifier
has been registered.
E
- ENABLE_LAUNCHER_INTERCEPTORS - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Property name used to enable support for
LauncherInterceptor
instances to be registered via theServiceLoader
mechanism: "junit.platform.launcher.interceptors.enabled" - enableImplicitConfigurationParameters(boolean) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Configure whether implicit configuration parameters should be considered.
- enableLauncherDiscoveryListenerAutoRegistration(boolean) - Method in class org.junit.platform.launcher.core.LauncherConfig.Builder
-
Configure the auto-registration flag for launcher discovery listeners.
- enableLauncherSessionListenerAutoRegistration(boolean) - Method in class org.junit.platform.launcher.core.LauncherConfig.Builder
-
Configure the auto-registration flag for launcher session listeners.
- enablePostDiscoveryFilterAutoRegistration(boolean) - Method in class org.junit.platform.launcher.core.LauncherConfig.Builder
-
Configure the auto-registration flag for post discovery filters.
- enableTestEngineAutoRegistration(boolean) - Method in class org.junit.platform.launcher.core.LauncherConfig.Builder
-
Configure the auto-registration flag for test engines.
- enableTestExecutionListenerAutoRegistration(boolean) - Method in class org.junit.platform.launcher.core.LauncherConfig.Builder
-
Configure the auto-registration flag for test execution listeners.
- engineDiscoveryFinished(UniqueId, EngineDiscoveryResult) - Method in interface org.junit.platform.launcher.LauncherDiscoveryListener
-
Called when test discovery has finished for an engine.
- EngineDiscoveryOrchestrator - Class in org.junit.platform.launcher.core
-
Orchestrates test discovery using the configured test engines.
- EngineDiscoveryOrchestrator(Iterable<TestEngine>, Collection<PostDiscoveryFilter>) - Constructor for class org.junit.platform.launcher.core.EngineDiscoveryOrchestrator
- EngineDiscoveryOrchestrator.Phase - Enum Class in org.junit.platform.launcher.core
- EngineDiscoveryResult - Class in org.junit.platform.launcher
-
EngineDiscoveryResult
encapsulates the result of test discovery by aTestEngine
. - EngineDiscoveryResult.Status - Enum Class in org.junit.platform.launcher
-
Status of test discovery by a
TestEngine
. - engineDiscoveryStarted(UniqueId) - Method in interface org.junit.platform.launcher.LauncherDiscoveryListener
-
Called when test discovery is about to be started for an engine.
- EngineExecutionOrchestrator - Class in org.junit.platform.launcher.core
-
Orchestrates test execution using the configured test engines.
- EngineExecutionOrchestrator() - Constructor for class org.junit.platform.launcher.core.EngineExecutionOrchestrator
- EngineFilter - Class in org.junit.platform.launcher
-
An
EngineFilter
is applied to allTestEngines
before they are used. - equals(Object) - Method in class org.junit.platform.launcher.TestIdentifier
- errorMessage() - Method in interface org.junit.platform.launcher.tagexpression.ParseResult
-
Return the contained parse error message, if any.
- evaluate(Collection<TestTag>) - Method in interface org.junit.platform.launcher.tagexpression.TagExpression
-
Evaluate this tag expression against the supplied collection of tags.
- excludeEngines(String...) - Static method in class org.junit.platform.launcher.EngineFilter
-
Create a new exclude
EngineFilter
based on the supplied engine IDs. - excludeEngines(List<String>) - Static method in class org.junit.platform.launcher.EngineFilter
-
Create a new exclude
EngineFilter
based on the supplied engine IDs. - excludeTags(String...) - Static method in class org.junit.platform.launcher.TagFilter
-
Create an exclude filter based on the supplied tag expressions.
- excludeTags(List<String>) - Static method in class org.junit.platform.launcher.TagFilter
-
Create an exclude filter based on the supplied tag expressions.
- execute(LauncherDiscoveryResult, EngineExecutionListener) - Method in class org.junit.platform.launcher.core.EngineExecutionOrchestrator
-
Executes tests for the supplied discovery results and notifies the supplied listener of execution events.
- execute(LauncherDiscoveryResult, EngineExecutionListener, TestExecutionListener) - Method in class org.junit.platform.launcher.core.EngineExecutionOrchestrator
-
Executes tests for the supplied discoveryResult and notifies the supplied engineExecutionListener and testExecutionListener of execution events.
- execute(LauncherDiscoveryRequest, TestExecutionListener...) - Method in interface org.junit.platform.launcher.Launcher
-
Execute a
TestPlan
which is built according to the suppliedLauncherDiscoveryRequest
by querying all registered engines and collecting their results, and notify registered listeners about the progress and results of the execution. - execute(TestPlan, TestExecutionListener...) - Method in interface org.junit.platform.launcher.Launcher
-
Execute the supplied
TestPlan
and notify registered listeners about the progress and results of the execution. - EXECUTION - Enum constant in enum class org.junit.platform.launcher.core.EngineDiscoveryOrchestrator.Phase
- executionFinished(TestIdentifier, TestExecutionResult) - Method in class org.junit.platform.launcher.listeners.LoggingListener
- executionFinished(TestIdentifier, TestExecutionResult) - Method in class org.junit.platform.launcher.listeners.SummaryGeneratingListener
- executionFinished(TestIdentifier, TestExecutionResult) - Method in class org.junit.platform.launcher.listeners.UniqueIdTrackingListener
- executionFinished(TestIdentifier, TestExecutionResult) - Method in interface org.junit.platform.launcher.TestExecutionListener
-
Called when the execution of a leaf or subtree of the
TestPlan
has finished, regardless of the outcome. - executionSkipped(TestIdentifier, String) - Method in class org.junit.platform.launcher.listeners.LoggingListener
- executionSkipped(TestIdentifier, String) - Method in class org.junit.platform.launcher.listeners.SummaryGeneratingListener
- executionSkipped(TestIdentifier, String) - Method in class org.junit.platform.launcher.listeners.UniqueIdTrackingListener
- executionSkipped(TestIdentifier, String) - Method in interface org.junit.platform.launcher.TestExecutionListener
-
Called when the execution of a leaf or subtree of the
TestPlan
has been skipped. - executionStarted(TestIdentifier) - Method in class org.junit.platform.launcher.listeners.LoggingListener
- executionStarted(TestIdentifier) - Method in class org.junit.platform.launcher.listeners.SummaryGeneratingListener
- executionStarted(TestIdentifier) - Method in interface org.junit.platform.launcher.TestExecutionListener
-
Called when the execution of a leaf or subtree of the
TestPlan
is about to be started.
F
- failed(Throwable) - Static method in class org.junit.platform.launcher.EngineDiscoveryResult
-
Create a
EngineDiscoveryResult
for a failed test discovery. - FAILED - Enum constant in enum class org.junit.platform.launcher.EngineDiscoveryResult.Status
-
Indicates that test discovery has failed.
- filters(Filter<?>...) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Add all of the supplied
filters
to the request. - forBiConsumer(BiConsumer<Throwable, Supplier<String>>) - Static method in class org.junit.platform.launcher.listeners.LoggingListener
-
Create a
LoggingListener
which delegates to the suppliedBiConsumer
for consumption of logging messages. - forJavaUtilLogging() - Static method in class org.junit.platform.launcher.listeners.LoggingListener
- forJavaUtilLogging(Level) - Static method in class org.junit.platform.launcher.listeners.LoggingListener
- from(Collection<TestDescriptor>, ConfigurationParameters) - Static method in class org.junit.platform.launcher.TestPlan
-
Construct a new
TestPlan
from the supplied collection ofTestDescriptors
. - from(TestDescriptor) - Static method in class org.junit.platform.launcher.TestIdentifier
-
Factory for creating a new
TestIdentifier
from aTestDescriptor
. - fromConfigurationParameter(String, String) - Static method in class org.junit.platform.launcher.listeners.discovery.LauncherDiscoveryListeners
G
- getAdditionalLauncherDiscoveryListeners() - Method in interface org.junit.platform.launcher.core.LauncherConfig
-
Get the collection of additional launcher discovery listeners that should be added to the
Launcher
. - getAdditionalLauncherSessionListeners() - Method in interface org.junit.platform.launcher.core.LauncherConfig
-
Get the collection of additional launcher session listeners that should be added to the
Launcher
. - getAdditionalPostDiscoveryFilters() - Method in interface org.junit.platform.launcher.core.LauncherConfig
-
Get the collection of additional post discovery filters that should be added to the
Launcher
. - getAdditionalTestEngines() - Method in interface org.junit.platform.launcher.core.LauncherConfig
-
Get the collection of additional test engines that should be added to the
Launcher
. - getAdditionalTestExecutionListeners() - Method in interface org.junit.platform.launcher.core.LauncherConfig
-
Get the collection of additional test execution listeners that should be added to the
Launcher
. - getChildren(String) - Method in class org.junit.platform.launcher.TestPlan
-
Deprecated.
- getChildren(UniqueId) - Method in class org.junit.platform.launcher.TestPlan
-
Get the children of the supplied unique ID.
- getChildren(TestIdentifier) - Method in class org.junit.platform.launcher.TestPlan
-
Get the children of the supplied
TestIdentifier
. - getClassName(TestPlan, TestIdentifier) - Static method in class org.junit.platform.launcher.listeners.LegacyReportingUtils
-
Deprecated.Get the class name for the supplied
TestIdentifier
using the suppliedTestPlan
. - getConfigurationParameters() - Method in class org.junit.platform.launcher.TestPlan
-
Get the
ConfigurationParameters
for this test plan. - getContainersAbortedCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of containers aborted.
- getContainersFailedCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of containers that failed.
- getContainersFoundCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of containers found.
- getContainersSkippedCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of containers skipped.
- getContainersStartedCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of containers started.
- getContainersSucceededCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of containers that succeeded.
- getDescendants(TestIdentifier) - Method in class org.junit.platform.launcher.TestPlan
-
Get all descendants of the supplied
TestIdentifier
(i.e., all of its children and their children, recursively). - getDiscoveryListener() - Method in interface org.junit.platform.launcher.LauncherDiscoveryRequest
-
Get the
LauncherDiscoveryListener
for this request. - getDisplayName() - Method in class org.junit.platform.launcher.TestIdentifier
-
Get the display name of the represented test or container.
- getEngineFilters() - Method in interface org.junit.platform.launcher.LauncherDiscoveryRequest
-
Get the
EngineFilters
for this request. - getEngineIds() - Method in class org.junit.platform.launcher.EngineFilter
- getEngineTestDescriptor(TestEngine) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryResult
- getException() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary.Failure
-
Get the
Throwable
causing the failure. - getFailures() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get an immutable list of the failures of the test plan execution.
- getLauncher() - Method in interface org.junit.platform.launcher.LauncherSession
-
Get the
Launcher
associated with this session. - getLegacyReportingName() - Method in class org.junit.platform.launcher.TestIdentifier
-
Get the name of this identifier in a format that is suitable for legacy reporting infrastructure — for example, for reporting systems built on the Ant-based XML reporting format for JUnit 4.
- getParent(TestIdentifier) - Method in class org.junit.platform.launcher.TestPlan
-
Get the parent of the supplied
TestIdentifier
. - getParentId() - Method in class org.junit.platform.launcher.TestIdentifier
-
Get the unique ID of this identifier's parent as a
String
, if available. - getParentIdObject() - Method in class org.junit.platform.launcher.TestIdentifier
-
Get the unique ID of this identifier's parent as a
UniqueId
, if available. - getPostDiscoveryFilters() - Method in interface org.junit.platform.launcher.LauncherDiscoveryRequest
-
Get the
PostDiscoveryFilters
for this request. - getRoots() - Method in class org.junit.platform.launcher.TestPlan
-
Get the root
TestIdentifiers
for this test plan. - getSource() - Method in class org.junit.platform.launcher.TestIdentifier
-
Get the source of the represented test or container, if available.
- getStatus() - Method in class org.junit.platform.launcher.EngineDiscoveryResult
-
Get the status of this result.
- getSummary() - Method in class org.junit.platform.launcher.listeners.SummaryGeneratingListener
-
Get the summary generated by this listener.
- getTags() - Method in class org.junit.platform.launcher.TestIdentifier
-
Get the set of tags associated with the represented test or container.
- getTestEngines() - Method in class org.junit.platform.launcher.core.LauncherDiscoveryResult
- getTestIdentifier() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary.Failure
-
Get the identifier of the failed test or container.
- getTestIdentifier(String) - Method in class org.junit.platform.launcher.TestPlan
-
Deprecated.
- getTestIdentifier(UniqueId) - Method in class org.junit.platform.launcher.TestPlan
-
Get the
TestIdentifier
with the supplied unique ID. - getTestsAbortedCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of tests aborted.
- getTestsFailedCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of tests that failed.
- getTestsFoundCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of tests found.
- getTestsSkippedCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of tests skipped.
- getTestsStartedCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of tests started.
- getTestsSucceededCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of tests that succeeded.
- getThrowable() - Method in class org.junit.platform.launcher.EngineDiscoveryResult
-
Get the throwable that caused this result, if available.
- getTimeFinished() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the timestamp (in milliseconds) when the test plan finished.
- getTimeStarted() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the timestamp (in milliseconds) when the test plan started.
- getTotalFailureCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the total number of failed containers and failed tests.
- getType() - Method in class org.junit.platform.launcher.TestIdentifier
-
Get the underlying descriptor type.
- getUniqueId() - Method in class org.junit.platform.launcher.TestIdentifier
-
Get the unique ID of the represented test or container as a
String
. - getUniqueIdObject() - Method in class org.junit.platform.launcher.TestIdentifier
-
Get the unique ID of the represented test or container as a
UniqueId
.
H
- hashCode() - Method in class org.junit.platform.launcher.TestIdentifier
I
- includeEngines(String...) - Static method in class org.junit.platform.launcher.EngineFilter
-
Create a new include
EngineFilter
based on the supplied engine IDs. - includeEngines(List<String>) - Static method in class org.junit.platform.launcher.EngineFilter
-
Create a new include
EngineFilter
based on the supplied engine IDs. - includeTags(String...) - Static method in class org.junit.platform.launcher.TagFilter
-
Create an include filter based on the supplied tag expressions.
- includeTags(List<String>) - Static method in class org.junit.platform.launcher.TagFilter
-
Create an include filter based on the supplied tag expressions.
- intercept(LauncherInterceptor.Invocation<T>) - Method in interface org.junit.platform.launcher.LauncherInterceptor
-
Intercept the supplied invocation.
- isContainer() - Method in class org.junit.platform.launcher.TestIdentifier
-
Determine if this identifier represents a container.
- isIncludeFilter() - Method in class org.junit.platform.launcher.EngineFilter
- isLauncherDiscoveryListenerAutoRegistrationEnabled() - Method in interface org.junit.platform.launcher.core.LauncherConfig
-
Determine if launcher discovery listeners should be discovered at runtime using the
ServiceLoader
mechanism and automatically registered. - isLauncherSessionListenerAutoRegistrationEnabled() - Method in interface org.junit.platform.launcher.core.LauncherConfig
-
Determine if launcher session listeners should be discovered at runtime using the
ServiceLoader
mechanism and automatically registered. - isPostDiscoveryFilterAutoRegistrationEnabled() - Method in interface org.junit.platform.launcher.core.LauncherConfig
-
Determine if post discovery filters should be discovered at runtime using the
ServiceLoader
mechanism and automatically registered. - isTest() - Method in class org.junit.platform.launcher.TestIdentifier
-
Determine if this identifier represents a test.
- isTestEngineAutoRegistrationEnabled() - Method in interface org.junit.platform.launcher.core.LauncherConfig
-
Determine if test engines should be discovered at runtime using the
ServiceLoader
mechanism and automatically registered. - isTestExecutionListenerAutoRegistrationEnabled() - Method in interface org.junit.platform.launcher.core.LauncherConfig
-
Determine if test execution listeners should be discovered at runtime using the
ServiceLoader
mechanism and automatically registered.
L
- Launcher - Interface in org.junit.platform.launcher
-
The
Launcher
API is the main entry point for client code that wishes to discover and execute tests using one or more test engines. - LauncherConfig - Interface in org.junit.platform.launcher.core
-
LauncherConfig
defines the configuration API for creatingLauncher
instances via theLauncherFactory
. - LauncherConfig.Builder - Class in org.junit.platform.launcher.core
-
Builder API for
LauncherConfig
. - LauncherConstants - Class in org.junit.platform.launcher
-
Collection of constants related to
Launcher
. - launcherDiscoveryFinished(LauncherDiscoveryRequest) - Method in interface org.junit.platform.launcher.LauncherDiscoveryListener
-
Called when test discovery has finished.
- LauncherDiscoveryListener - Interface in org.junit.platform.launcher
-
Register a concrete implementation of this interface with a
LauncherDiscoveryRequestBuilder
orLauncher
to be notified of events that occur during test discovery. - LauncherDiscoveryListeners - Class in org.junit.platform.launcher.listeners.discovery
-
Collection of
static
factory methods for creatingLauncherDiscoveryListeners
. - LauncherDiscoveryRequest - Interface in org.junit.platform.launcher
-
LauncherDiscoveryRequest
extends theEngineDiscoveryRequest
API with additional filters that are applied by theLauncher
itself. - LauncherDiscoveryRequestBuilder - Class in org.junit.platform.launcher.core
-
The
LauncherDiscoveryRequestBuilder
provides a light-weight DSL for generating aLauncherDiscoveryRequest
. - LauncherDiscoveryRequestBuilder() - Constructor for class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Deprecated.
- LauncherDiscoveryResult - Class in org.junit.platform.launcher.core
-
Represents the result of test discovery of the configured test engines.
- launcherDiscoveryStarted(LauncherDiscoveryRequest) - Method in interface org.junit.platform.launcher.LauncherDiscoveryListener
-
Called when test discovery is about to be started.
- LauncherFactory - Class in org.junit.platform.launcher.core
-
Factory for creating
Launcher
instances by invokingLauncherFactory.create()
orLauncherFactory.create(LauncherConfig)
. - LauncherInterceptor - Interface in org.junit.platform.launcher
-
Interceptor for test discovery and execution by a
Launcher
in the context of aLauncherSession
. - LauncherInterceptor.Invocation<T> - Interface in org.junit.platform.launcher
-
An invocation that can be intercepted.
- LauncherSession - Interface in org.junit.platform.launcher
-
The
LauncherSession
API is the main entry point for client code that wishes to repeatedly discover and execute tests using one or more test engines. - launcherSessionClosed(LauncherSession) - Method in interface org.junit.platform.launcher.LauncherSessionListener
-
Called when a launcher session was closed.
- LauncherSessionListener - Interface in org.junit.platform.launcher
-
Register an implementation of this interface to be notified when a
LauncherSession
is opened and closed. - LauncherSessionListeners - Class in org.junit.platform.launcher.listeners.session
-
Collection of
static
factory methods for creatingLauncherSessionListeners
. - launcherSessionOpened(LauncherSession) - Method in interface org.junit.platform.launcher.LauncherSessionListener
-
Called when a launcher session was opened.
- LegacyReportingUtils - Class in org.junit.platform.launcher.listeners
-
Deprecated.Use
org.junit.platform.reporting.legacy.LegacyReportingUtils
instead. - LISTENER_ENABLED_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.listeners.UniqueIdTrackingListener
-
Property name used to enable the
UniqueIdTrackingListener
: "junit.platform.listeners.uid.tracking.enabled" - listeners(LauncherDiscoveryListener...) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Add all of the supplied discovery listeners to the request.
- loadTestEngines() - Method in class org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry
- logging() - Static method in class org.junit.platform.launcher.listeners.discovery.LauncherDiscoveryListeners
-
Create a
LauncherDiscoveryListener
that logs test discovery events based on their severity. - LoggingListener - Class in org.junit.platform.launcher.listeners
-
Simple
TestExecutionListener
for logging informational messages for all events via aBiConsumer
that consumesThrowable
andSupplier<String>
.
N
- NOOP - Static variable in interface org.junit.platform.launcher.LauncherDiscoveryListener
-
No-op implementation of
LauncherDiscoveryListener
- NOOP - Static variable in interface org.junit.platform.launcher.LauncherSessionListener
-
No-op implementation of
LauncherSessionListener
O
- openSession() - Static method in class org.junit.platform.launcher.core.LauncherFactory
- openSession(LauncherConfig) - Static method in class org.junit.platform.launcher.core.LauncherFactory
-
Factory method for opening a new
LauncherSession
using the suppliedLauncherConfig
. - org.junit.platform.launcher - package org.junit.platform.launcher
-
Public API for configuring and launching test plans.
- org.junit.platform.launcher.core - package org.junit.platform.launcher.core
-
Core support classes for the
Launcher
including theLauncherFactory
and theLauncherDiscoveryRequestBuilder
. - org.junit.platform.launcher.listeners - package org.junit.platform.launcher.listeners
-
Common
TestExecutionListener
implementations and related support classes for theLauncher
. - org.junit.platform.launcher.listeners.discovery - package org.junit.platform.launcher.listeners.discovery
-
Common
LauncherDiscoveryListener
implementations and factory methods. - org.junit.platform.launcher.listeners.session - package org.junit.platform.launcher.listeners.session
-
Common
LauncherSessionListener
implementations and factory methods. - org.junit.platform.launcher.tagexpression - package org.junit.platform.launcher.tagexpression
-
The tag expression language parser and related support classes.
- OUTPUT_DIR_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.listeners.UniqueIdTrackingListener
-
Property name used to set the path to the output directory for the file generated by the
UniqueIdTrackingListener
: "junit.platform.listeners.uid.tracking.output.dir" - OUTPUT_FILE_PREFIX_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.listeners.UniqueIdTrackingListener
-
Property name used to set the prefix for the name of the file generated by the
UniqueIdTrackingListener
: "junit.platform.listeners.uid.tracking.output.file.prefix" - OutputDir - Class in org.junit.platform.launcher.listeners
P
- parentConfigurationParameters(ConfigurationParameters) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Set the parent configuration parameters to use for the request.
- parseFrom(String) - Static method in interface org.junit.platform.launcher.tagexpression.TagExpression
-
Attempt to parse a
TagExpression
from the supplied tag expression string. - ParseResult - Interface in org.junit.platform.launcher.tagexpression
-
The result of attempting to parse a
TagExpression
. - PostDiscoveryFilter - Interface in org.junit.platform.launcher
-
A
PostDiscoveryFilter
is applied toTestDescriptors
after test discovery. - postVisitContainer(TestIdentifier) - Method in interface org.junit.platform.launcher.TestPlan.Visitor
-
Called after visiting a container.
- preVisitContainer(TestIdentifier) - Method in interface org.junit.platform.launcher.TestPlan.Visitor
-
Called before visiting a container.
- printFailuresTo(PrintWriter) - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Print failed containers and tests, including sources and exception messages, to the supplied
PrintWriter
. - printFailuresTo(PrintWriter, int) - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Print failed containers and tests, including sources and exception messages, to the supplied
PrintWriter
. - printTo(PrintWriter) - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Print this summary to the supplied
PrintWriter
. - proceed() - Method in interface org.junit.platform.launcher.LauncherInterceptor.Invocation
R
- registerLauncherDiscoveryListeners(LauncherDiscoveryListener...) - Method in interface org.junit.platform.launcher.Launcher
-
Register one or more listeners for test discovery.
- registerTestExecutionListeners(TestExecutionListener...) - Method in interface org.junit.platform.launcher.Launcher
-
Register one or more listeners for test execution.
- reportingEntryPublished(TestIdentifier, ReportEntry) - Method in interface org.junit.platform.launcher.TestExecutionListener
-
Called when additional test reporting data has been published for the supplied
TestIdentifier
. - request() - Static method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Create a new
LauncherDiscoveryRequestBuilder
.
S
- selectors(List<? extends DiscoverySelector>) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Add all of the supplied
selectors
to the request. - selectors(DiscoverySelector...) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Add all of the supplied
selectors
to the request. - ServiceLoaderTestEngineRegistry - Class in org.junit.platform.launcher.core
- ServiceLoaderTestEngineRegistry() - Constructor for class org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry
- STACKTRACE_PRUNING_ENABLED_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Property name used to enable or disable stack trace pruning.
- STDERR_REPORT_ENTRY_KEY - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Key used to publish captured output to
System.err
as part of aReportEntry
: "stderr" - STDOUT_REPORT_ENTRY_KEY - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Key used to publish captured output to
System.out
as part of aReportEntry
: "stdout" - successful() - Static method in class org.junit.platform.launcher.EngineDiscoveryResult
-
Create a
EngineDiscoveryResult
for a successful test discovery. - SUCCESSFUL - Enum constant in enum class org.junit.platform.launcher.EngineDiscoveryResult.Status
-
Indicates that test discovery was successful.
- SummaryGeneratingListener - Class in org.junit.platform.launcher.listeners
-
Simple
TestExecutionListener
that generates a summary of the test execution. - SummaryGeneratingListener() - Constructor for class org.junit.platform.launcher.listeners.SummaryGeneratingListener
T
- tagExpression() - Method in interface org.junit.platform.launcher.tagexpression.ParseResult
-
Return the contained
TagExpression
, if any. - TagExpression - Interface in org.junit.platform.launcher.tagexpression
-
A tag expression can be evaluated against a collection of tags to determine if they match the expression.
- tagExpressionOrThrow(Function<String, RuntimeException>) - Method in interface org.junit.platform.launcher.tagexpression.ParseResult
-
Return the parsed
TagExpression
or throw an exception with the contained parse error. - TagFilter - Class in org.junit.platform.launcher
-
Factory methods for creating
PostDiscoveryFilters
based on included and excluded tags or tag expressions. - TestExecutionListener - Interface in org.junit.platform.launcher
-
Register a concrete implementation of this interface with a
Launcher
to be notified of events that occur during test execution. - TestExecutionSummary - Interface in org.junit.platform.launcher.listeners
-
Summary of test plan execution.
- TestExecutionSummary.Failure - Interface in org.junit.platform.launcher.listeners
-
Failure of a test or container.
- TestIdentifier - Class in org.junit.platform.launcher
-
Immutable data transfer object that represents a test or container which is usually part of a
TestPlan
. - TestPlan - Class in org.junit.platform.launcher
-
TestPlan
describes the tree of tests and containers as discovered by aLauncher
. - TestPlan(boolean, ConfigurationParameters) - Constructor for class org.junit.platform.launcher.TestPlan
- TestPlan.Visitor - Interface in org.junit.platform.launcher
-
Visitor for
TestIdentifiers
in aTestPlan
. - testPlanExecutionFinished(TestPlan) - Method in class org.junit.platform.launcher.listeners.LoggingListener
- testPlanExecutionFinished(TestPlan) - Method in class org.junit.platform.launcher.listeners.SummaryGeneratingListener
- testPlanExecutionFinished(TestPlan) - Method in class org.junit.platform.launcher.listeners.UniqueIdTrackingListener
- testPlanExecutionFinished(TestPlan) - Method in interface org.junit.platform.launcher.TestExecutionListener
-
Called when the execution of the
TestPlan
has finished, after all tests have been executed. - testPlanExecutionStarted(TestPlan) - Method in class org.junit.platform.launcher.listeners.LoggingListener
- testPlanExecutionStarted(TestPlan) - Method in class org.junit.platform.launcher.listeners.SummaryGeneratingListener
- testPlanExecutionStarted(TestPlan) - Method in class org.junit.platform.launcher.listeners.UniqueIdTrackingListener
- testPlanExecutionStarted(TestPlan) - Method in interface org.junit.platform.launcher.TestExecutionListener
-
Called when the execution of the
TestPlan
has started, before any test has been executed. - toPath() - Method in class org.junit.platform.launcher.listeners.OutputDir
- toString() - Method in enum class org.junit.platform.launcher.core.EngineDiscoveryOrchestrator.Phase
- toString() - Method in class org.junit.platform.launcher.EngineDiscoveryResult
- toString() - Method in class org.junit.platform.launcher.EngineFilter
- toString() - Method in class org.junit.platform.launcher.TestIdentifier
U
- UniqueIdTrackingListener - Class in org.junit.platform.launcher.listeners
-
UniqueIdTrackingListener
is aTestExecutionListener
that tracks the unique IDs of all tests that were executed during the execution of theTestPlan
and generates a file containing the unique IDs once execution of theTestPlan
has finished. - UniqueIdTrackingListener() - Constructor for class org.junit.platform.launcher.listeners.UniqueIdTrackingListener
V
- valueOf(String) - Static method in enum class org.junit.platform.launcher.core.EngineDiscoveryOrchestrator.Phase
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.junit.platform.launcher.EngineDiscoveryResult.Status
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.junit.platform.launcher.core.EngineDiscoveryOrchestrator.Phase
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.junit.platform.launcher.EngineDiscoveryResult.Status
-
Returns an array containing the constants of this enum class, in the order they are declared.
- visit(TestIdentifier) - Method in interface org.junit.platform.launcher.TestPlan.Visitor
-
Called for all test identifiers regardless of their type.
W
- withRetainedEngines(Predicate<? super TestDescriptor>) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryResult
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form