Top Fields Constructors Methods
org.junit.vintage.engine.execution

public Class VintageExecutor

extends Object
Class Inheritance
Annotations
@SuppressWarnings:deprecation, RedundantSuppression
@API
status:INTERNAL
since:5.12
Static Imports
java.util.Objects.requireNonNullElse, org.apiguardian.api.API.Status.INTERNAL

Since
5.12

Field Summary

Modifier and TypeField and Description
private final boolean
private final ConfigurationParameters
private static final int
private final VintageEngineDescriptor
private final EngineExecutionListener
private static final Logger
private final boolean
private final boolean
private static final int

Constructor Summary

AccessConstructor and Description
public
VintageExecutor(VintageEngineDescriptor engineDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters)

Method Summary

Modifier and TypeMethod and Description
private List<RunnerTestDescriptor>
public void
private void
private boolean
executeClassesInParallel(List<RunnerTestDescriptor> runnerTestDescriptors, RunnerExecutor runnerExecutor, ExecutorService executorService)

private void
executeClassesSequentially(List<RunnerTestDescriptor> runnerTestDescriptors, RunnerExecutor runnerExecutor)

private boolean
private int
private RunnerTestDescriptor
parallelMethodExecutor(RunnerTestDescriptor runnerTestDescriptor, ExecutorService executorService)

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

classesback to summary
private final boolean classes
configurationParametersback to summary
private final ConfigurationParameters configurationParameters
DEFAULT_THREAD_POOL_SIZEback to summary
private static final int DEFAULT_THREAD_POOL_SIZE
engineDescriptorback to summary
private final VintageEngineDescriptor engineDescriptor
engineExecutionListenerback to summary
private final EngineExecutionListener engineExecutionListener
loggerback to summary
private static final Logger logger
methodsback to summary
private final boolean methods
parallelExecutionEnabledback to summary
private final boolean parallelExecutionEnabled
SHUTDOWN_TIMEOUT_SECONDSback to summary
private static final int SHUTDOWN_TIMEOUT_SECONDS

Constructor Detail

VintageExecutorback to summary
public VintageExecutor(VintageEngineDescriptor engineDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters)

Method Detail

collectRunnerTestDescriptorsback to summary
private List<RunnerTestDescriptor> collectRunnerTestDescriptors(ExecutorService executorService)
executeAllChildrenback to summary
public void executeAllChildren(CancellationToken cancellationToken)
executeClassesAndMethodsSequentiallyback to summary
private void executeClassesAndMethodsSequentially(CancellationToken cancellationToken)
executeClassesInParallelback to summary
private boolean executeClassesInParallel(List<RunnerTestDescriptor> runnerTestDescriptors, RunnerExecutor runnerExecutor, ExecutorService executorService)
executeClassesSequentiallyback to summary
private void executeClassesSequentially(List<RunnerTestDescriptor> runnerTestDescriptors, RunnerExecutor runnerExecutor)
executeInParallelback to summary
private boolean executeInParallel(CancellationToken cancellationToken)
getThreadPoolSizeback to summary
private int getThreadPoolSize()
parallelMethodExecutorback to summary
private RunnerTestDescriptor parallelMethodExecutor(RunnerTestDescriptor runnerTestDescriptor, ExecutorService executorService)
shutdownExecutorServiceback to summary
private void shutdownExecutorService(ExecutorService executorService)