Top Description Interfaces Classes
module org.junit.platform.launcher

Package org.junit.platform.launcher

Annotations
@NullMarked
Imports
org.jspecify.annotations.NullMarked

Public API for configuring and launching test plans.

This API is typically used by IDEs and build tools.

Interface Summary

Modifier and TypeInterface and Description
public interface
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.

public interface
LauncherDiscoveryListener

Register a concrete implementation of this interface with a org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder or Launcher to be notified of events that occur during test discovery.

public interface
LauncherDiscoveryRequest

LauncherDiscoveryRequest extends the EngineDiscoveryRequest API with additional filters that are applied by the Launcher itself.

public interface
LauncherExecutionRequest

LauncherExecutionRequest encapsulates a request for test execution passed to the Launcher.

public interface
LauncherInterceptor

Interceptor for test discovery and execution by a Launcher in the context of a LauncherSession.

public interface
LauncherSession

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.

public interface
LauncherSessionListener

Register an implementation of this interface to be notified when a LauncherSession is opened and closed.

public interface
MethodFilter

PostDiscoveryFilter that is applied to the fully qualified Method name without parameters.

public interface
PostDiscoveryFilter

A PostDiscoveryFilter is applied to TestDescriptors after test discovery.

public interface
TestExecutionListener

Register a concrete implementation of this interface with a Launcher or LauncherExecutionRequest to be notified of events that occur during test execution.

Class Summary

Modifier and TypeClass and Description
pack-priv abstract class
AbstractMethodFilter

Abstract MethodFilter that servers as a superclass for filters including or excluding fully qualified method names without parameters based on pattern-matching.

public class
EngineDiscoveryResult

EngineDiscoveryResult encapsulates the result of test discovery by a org.junit.platform.engine.TestEngine.

public class
EngineFilter

An EngineFilter is applied to all TestEngines before they are used.

pack-priv class
ExcludeMethodFilter

MethodFilter that matches fully qualified method names against patterns in the form of regular expressions.

pack-priv class
IncludeMethodFilter

MethodFilter that matches fully qualified method names against patterns in the form of regular expressions.

public class
LauncherConstants

Collection of constants related to Launcher.

public class
TagFilter

Factory methods for creating PostDiscoveryFilters based on included and excluded tags or tag expressions.

public class
TestIdentifier

Immutable data transfer object that represents a test or container which is usually part of a TestPlan.

public class
TestPlan

TestPlan describes the tree of tests and containers as discovered by a Launcher.