Top Description Interfaces Classes Enums
module org.junit.platform.engine

Package org.junit.platform.engine.support.hierarchical

Annotations
@NullMarked
Imports
org.jspecify.annotations.NullMarked

Support classes and base implementation for any org.junit.platform.engine.TestEngine that wishes to organize test suites hierarchically based on the org.junit.platform.engine.support.hierarchical.Node abstraction.

Interface Summary

Modifier and TypeInterface and Description
public interface
EngineExecutionContext

Marker interface for an execution context used by a concrete implementation of HierarchicalTestEngine and its collaborators.

public interface
HierarchicalTestExecutorService

A closeable service that executes test tasks.

public interface
Node<
the type of EngineExecutionContext used by the HierarchicalTestEngine
C extends EngineExecutionContext
>

A node within the execution hierarchy.

public interface
ParallelExecutionConfiguration

Configuration to use for parallel test execution.

public interface
ParallelExecutionConfigurationStrategy

A strategy to use for configuring parallel test execution.

public interface
ResourceLock

A lock for a one or more resources.

Class Summary

Modifier and TypeClass and Description
pack-priv class
pack-priv class
public class
ExclusiveResource

An exclusive resource identified by a key with a lock mode that is used to synchronize access to shared resources when executing nodes in parallel.

public class
ForkJoinPoolHierarchicalTestExecutorService

A ForkJoinPool-based executor service that executes test tasks with the configured parallelism.

public abstract class
HierarchicalTestEngine<
the type of EngineExecutionContext used by this engine
C extends EngineExecutionContext
>

Abstract base class for all TestEngine implementations that wish to organize test suites hierarchically based on the Node abstraction.

pack-priv class
HierarchicalTestExecutor<
the type of EngineExecutionContext used by the HierarchicalTestEngine
C extends EngineExecutionContext
>

Implementation core of all TestEngines that wish to use the Node abstraction as the driving principle for structuring and executing test suites.

pack-priv class
pack-priv class
pack-priv class
pack-priv class
pack-priv class
pack-priv class
NopLock

No-op ResourceLock implementation.

public class
OpenTest4JAwareThrowableCollector

Specialization of ThrowableCollector that treats instances of TestAbortedException as aborting.

public class
SameThreadHierarchicalTestExecutorService

A simple executor service that executes all test tasks in the caller's thread.

pack-priv class
public class
ThrowableCollector

Simple component that can be used to collect one or more instances of Throwable.

Enum Summary

Modifier and TypeEnum and Description
public enum
DefaultParallelExecutionConfigurationStrategy

Default implementations of configuration strategies for parallel test execution.