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
LauncherDiscoveryListenerthat aborts test discovery on failures. - accept(TestPlan.Visitor) - Method in class org.junit.platform.launcher.TestPlan
-
Accept the supplied
TestPlan.Visitorfor 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
filtersto 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
LauncherConfigthat has been configured via this builder. - build() - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Build the
LauncherDiscoveryRequestthat 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
- Configuration and Defaults - Search tag in class org.junit.platform.launcher.listeners.UniqueIdTrackingListener
- Section
- 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 supplied configuration parameters to the request.
- configurationParametersResources(String...) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Add all of the supplied configuration parameters resource files 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
TestIdentifiersthat 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
Launcherusing the suppliedLauncherConfig. - createFile(String, String) - Method in class org.junit.platform.launcher.listeners.OutputDir
- CRITICAL_DISCOVERY_ISSUE_SEVERITY_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Property name used to configure the critical severity of issues encountered during test discovery.
D
- DEACTIVATE_ALL_LISTENERS_PATTERN - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Wildcard pattern which signals that all listeners registered via the
ServiceLoadermechanism 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
ServiceLoadermechanism: "junit.platform.execution.listeners.deactivate" - DEFAULT - Static variable in interface org.junit.platform.launcher.core.LauncherConfig
-
The default
LauncherConfigwhich 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 class org.junit.platform.launcher.core.EngineDiscoveryOrchestrator
-
Discovers tests for the supplied request using the configured test engines.
- discover(LauncherDiscoveryRequest) - Method in interface org.junit.platform.launcher.Launcher
-
Discover tests and build a
TestPlanaccording to the suppliedLauncherDiscoveryRequestby querying all registered engines and collecting their results. - discover(LauncherDiscoveryRequest, 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_ISSUE_FAILURE_PHASE_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Property name used to configure the phase that critical discovery issues should cause a failure
- DiscoveryIssueException - Exception Class in org.junit.platform.launcher.core
-
DiscoveryIssueExceptionis an exception that is thrown if an engine reports critical issues during test discovery. - 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
TestIdentifierhas been registered.
E
- ENABLE_LAUNCHER_INTERCEPTORS - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Property name used to enable support for
LauncherInterceptorinstances to be registered via theServiceLoadermechanism: "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
- EngineDiscoveryResult - Class in org.junit.platform.launcher
-
EngineDiscoveryResultencapsulates 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
EngineFilteris applied to allTestEnginesbefore 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.
- Example - Search tag in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
- Section
- Example - Search tag in interface org.junit.platform.launcher.core.LauncherConfig
- Section
- Examples - Search tag in org.junit.platform.launcher.LauncherConstants.DEACTIVATE_LISTENERS_PATTERN_PROPERTY_NAME
- Section
- excludeEngines(String...) - Static method in class org.junit.platform.launcher.EngineFilter
-
Create a new exclude
EngineFilterbased on the supplied engine IDs. - excludeEngines(List<String>) - Static method in class org.junit.platform.launcher.EngineFilter
-
Create a new exclude
EngineFilterbased on the supplied engine IDs. - excludeMethodNamePatterns(String...) - Static method in interface org.junit.platform.launcher.MethodFilter
-
Create a new exclude
MethodFilterbased on the supplied patterns. - excludeMethodNamePatterns(List<String>) - Static method in interface org.junit.platform.launcher.MethodFilter
-
Create a new exclude
MethodFilterbased on the supplied patterns. - 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, NamespacedHierarchicalStore<Namespace>) - 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, NamespacedHierarchicalStore<Namespace>) - 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
TestPlanwhich is built according to the suppliedLauncherDiscoveryRequestby 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
TestPlanand notify registered listeners about the progress and results of the execution. - 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
TestPlanhas 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
TestPlanhas 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
TestPlanis about to be started.
F
- failed(Throwable) - Static method in class org.junit.platform.launcher.EngineDiscoveryResult
-
Create a
EngineDiscoveryResultfor a failed test discovery. - FAILED - Enum constant in enum class org.junit.platform.launcher.EngineDiscoveryResult.Status
-
Indicates that test discovery has failed.
- fileEntryPublished(TestIdentifier, FileEntry) - Method in interface org.junit.platform.launcher.TestExecutionListener
-
Called when a file or directory has been published for the supplied
TestIdentifier. - filters(Filter<?>...) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Add all supplied
filtersto the request. - forBiConsumer(BiConsumer<Throwable, Supplier<String>>) - Static method in class org.junit.platform.launcher.listeners.LoggingListener
-
Create a
LoggingListenerwhich delegates to the suppliedBiConsumerfor 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(boolean, Collection<TestDescriptor>, ConfigurationParameters, OutputDirectoryCreator) - Static method in class org.junit.platform.launcher.TestPlan
-
Construct a new
TestPlanfrom the supplied collection ofTestDescriptors. - from(TestDescriptor) - Static method in class org.junit.platform.launcher.TestIdentifier
-
Factory for creating a new
TestIdentifierfrom 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
TestIdentifierusing the suppliedTestPlan. - getConfigurationParameters() - Method in class org.junit.platform.launcher.TestPlan
-
Get the
ConfigurationParametersfor 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). - getDiscoveryIssues(TestEngine) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryResult
- getDiscoveryListener() - Method in interface org.junit.platform.launcher.LauncherDiscoveryRequest
-
Get the
LauncherDiscoveryListenerfor 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
EngineFiltersfor 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
Throwablecausing 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
Launcherassociated 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.
- getOutputDirectoryCreator() - Method in class org.junit.platform.launcher.TestPlan
-
Get the
OutputDirectoryCreatorfor this test plan. - getOutputDirectoryProvider() - Method in class org.junit.platform.launcher.TestPlan
-
Deprecated.Please use
TestPlan.getOutputDirectoryCreator()instead - 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
PostDiscoveryFiltersfor this request. - getRoots() - Method in class org.junit.platform.launcher.TestPlan
-
Get the root
TestIdentifiersfor 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.
- getStore() - Method in interface org.junit.platform.launcher.LauncherSession
-
Get the
NamespacedHierarchicalStoreassociated with this session. - 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
TestIdentifierwith 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
EngineFilterbased on the supplied engine IDs. - includeEngines(List<String>) - Static method in class org.junit.platform.launcher.EngineFilter
-
Create a new include
EngineFilterbased on the supplied engine IDs. - includeMethodNamePatterns(String...) - Static method in interface org.junit.platform.launcher.MethodFilter
-
Create a new include
MethodFilterbased on the supplied patterns. - includeMethodNamePatterns(List<String>) - Static method in interface org.junit.platform.launcher.MethodFilter
-
Create a new include
MethodFilterbased on the supplied patterns. - 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
ServiceLoadermechanism 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
ServiceLoadermechanism 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
ServiceLoadermechanism 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
ServiceLoadermechanism 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
ServiceLoadermechanism and automatically registered.
L
- Launcher - Interface in org.junit.platform.launcher
-
The
LauncherAPI 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
-
LauncherConfigdefines the configuration API for creatingLauncherinstances 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
LauncherDiscoveryRequestBuilderorLauncherto be notified of events that occur during test discovery. - LauncherDiscoveryListeners - Class in org.junit.platform.launcher.listeners.discovery
-
Collection of
staticfactory methods for creatingLauncherDiscoveryListeners. - LauncherDiscoveryRequest - Interface in org.junit.platform.launcher
-
LauncherDiscoveryRequestextends theEngineDiscoveryRequestAPI with additional filters that are applied by theLauncheritself. - LauncherDiscoveryRequestBuilder - Class in org.junit.platform.launcher.core
-
The
LauncherDiscoveryRequestBuilderprovides 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
Launcherinstances by invokingLauncherFactory.create()orLauncherFactory.create(LauncherConfig). - LauncherInterceptor - Interface in org.junit.platform.launcher
-
Interceptor for test discovery and execution by a
Launcherin 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
LauncherSessionAPI 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
LauncherSessionis opened and closed. - LauncherSessionListeners - Class in org.junit.platform.launcher.listeners.session
-
Collection of
staticfactory 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.Useinstead.
invalid reference
org.junit.platform.reporting.legacy.LegacyReportingUtils - 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 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
LauncherDiscoveryListenerthat logs test discovery events based on their severity. - LoggingListener - Class in org.junit.platform.launcher.listeners
-
Simple
TestExecutionListenerfor logging informational messages for all events via aBiConsumerthat consumesThrowableandSupplier<String>.
M
- MethodFilter - Interface in org.junit.platform.launcher
-
PostDiscoveryFilterthat is applied to the fully qualifiedMethodname without parameters.
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
LauncherSessionusing 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
Launcherincluding theLauncherFactoryand theLauncherDiscoveryRequestBuilder. - org.junit.platform.launcher.listeners - package org.junit.platform.launcher.listeners
-
Common
TestExecutionListenerimplementations and related support classes for theLauncher. - org.junit.platform.launcher.listeners.discovery - package org.junit.platform.launcher.listeners.discovery
-
Common
LauncherDiscoveryListenerimplementations and factory methods. - org.junit.platform.launcher.listeners.session - package org.junit.platform.launcher.listeners.session
-
Common
LauncherSessionListenerimplementations 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.LauncherConstants
-
Property name used to configure the output directory for reporting.
- 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_DIR_UNIQUE_NUMBER_PLACEHOLDER - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Placeholder for use in
LauncherConstants.OUTPUT_DIR_PROPERTY_NAMEthat will be replaced with a unique number. - 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
- outputDirectoryCreator(OutputDirectoryCreator) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Set the
OutputDirectoryCreatorto use for the request. - outputDirectoryProvider(OutputDirectoryProvider) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Deprecated.
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
TagExpressionfrom the supplied tag expression string. - ParseResult - Interface in org.junit.platform.launcher.tagexpression
-
The result of attempting to parse a
TagExpression. - Pattern Matching Syntax - Search tag in org.junit.platform.launcher.LauncherConstants.DEACTIVATE_LISTENERS_PATTERN_PROPERTY_NAME
- Section
- PostDiscoveryFilter - Interface in org.junit.platform.launcher
-
A
PostDiscoveryFilteris applied toTestDescriptorsafter 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 supplied
selectorsto the request. - selectors(DiscoverySelector...) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Add all supplied
selectorsto 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.erras 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.outas part of aReportEntry: "stdout" - successful() - Static method in class org.junit.platform.launcher.EngineDiscoveryResult
-
Create a
EngineDiscoveryResultfor 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
TestExecutionListenerthat generates a summary of the test execution. - SummaryGeneratingListener() - Constructor for class org.junit.platform.launcher.listeners.SummaryGeneratingListener
- Supported Values - Search tag in org.junit.platform.launcher.LauncherConstants.CRITICAL_DISCOVERY_ISSUE_SEVERITY_PROPERTY_NAME
- Section
- Supported Values - Search tag in org.junit.platform.launcher.LauncherConstants.DISCOVERY_ISSUE_FAILURE_PHASE_PROPERTY_NAME
- Section
- Supported Values - Search tag in org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder.DEFAULT_DISCOVERY_LISTENER_CONFIGURATION_PROPERTY_NAME
- Section
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
TagExpressionor throw an exception with the contained parse error. - TagFilter - Class in org.junit.platform.launcher
-
Factory methods for creating
PostDiscoveryFiltersbased on included and excluded tags or tag expressions. - TestExecutionListener - Interface in org.junit.platform.launcher
-
Register a concrete implementation of this interface with a
Launcherto 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
-
TestPlandescribes the tree of tests and containers as discovered by aLauncher. - TestPlan(boolean, ConfigurationParameters, OutputDirectoryCreator) - Constructor for class org.junit.platform.launcher.TestPlan
- TestPlan.Visitor - Interface in org.junit.platform.launcher
-
Visitor for
TestIdentifiersin 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
TestPlanhas 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
TestPlanhas started, before any test has been executed. - toPath() - Method in class org.junit.platform.launcher.listeners.OutputDir
- 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
-
UniqueIdTrackingListeneris aTestExecutionListenerthat tracks the unique IDs of all tests that were executed during the execution of theTestPlanand generates a file containing the unique IDs once execution of theTestPlanhas finished. - UniqueIdTrackingListener() - Constructor for class org.junit.platform.launcher.listeners.UniqueIdTrackingListener
V
- 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.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