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

pack-priv Class TestRun

extends Object
Class Inheritance
Static Imports
java.util.Collections.emptyList, .Objects.requireNonNull, java.util.stream.Collectors.toCollection, .Collectors.toMap, .Stream.concat, org.junit.platform.engine.TestExecutionResult.failed, .TestExecutionResult.successful

Since
4.12

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final Map<Description, TestRun.VintageDescriptors>
private final Map<TestDescriptor, List<TestExecutionResult>>
private final Set<TestDescriptor>
private final Map<TestDescriptor, EventType>
private final ThreadLocal<Deque<VintageTestDescriptor>>
private final Set<TestDescriptor>
private final RunnerTestDescriptor
private final Set<TestDescriptor>
private final Set<TestDescriptor>

Constructor Summary

AccessConstructor and Description
pack-priv
TestRun(RunnerTestDescriptor runnerTestDescriptor)

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
areAllFinishedOrSkipped(Set<? extends TestDescriptor> testDescriptors)

pack-priv Collection<TestDescriptor>
pack-priv Collection<TestDescriptor>
pack-priv RunnerTestDescriptor
pack-priv TestExecutionResult
private TestRun.VintageDescriptors
pack-priv boolean
pack-priv boolean
pack-priv boolean
isFinished(TestDescriptor testDescriptor)

pack-priv boolean
pack-priv boolean
isNotFinished(TestDescriptor testDescriptor)

pack-priv boolean
isNotSkipped(TestDescriptor testDescriptor)

pack-priv boolean
isNotStarted(TestDescriptor testDescriptor)

pack-priv boolean
isSkipped(TestDescriptor testDescriptor)

pack-priv Optional<VintageTestDescriptor>
pack-priv Optional<VintageTestDescriptor>
private Optional<VintageTestDescriptor>
pack-priv void
markFinished(TestDescriptor testDescriptor)

pack-priv void
markSkipped(TestDescriptor testDescriptor)

pack-priv void
markStarted(TestDescriptor testDescriptor, EventType eventType)

pack-priv void
pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

descriptionToDescriptorsback to summary
private final Map<Description, TestRun.VintageDescriptors> descriptionToDescriptors
executionResultsback to summary
private final Map<TestDescriptor, List<TestExecutionResult>> executionResults
finishedDescriptorsback to summary
private final Set<TestDescriptor> finishedDescriptors
inProgressDescriptorsback to summary
private final Map<TestDescriptor, EventType> inProgressDescriptors
inProgressDescriptorsByStartingThreadback to summary
private final ThreadLocal<Deque<VintageTestDescriptor>> inProgressDescriptorsByStartingThread
runnerDescendantsback to summary
private final Set<TestDescriptor> runnerDescendants
runnerTestDescriptorback to summary
private final RunnerTestDescriptor runnerTestDescriptor
skippedDescriptorsback to summary
private final Set<TestDescriptor> skippedDescriptors
startedDescriptorsback to summary
private final Set<TestDescriptor> startedDescriptors

Constructor Detail

TestRunback to summary
pack-priv TestRun(RunnerTestDescriptor runnerTestDescriptor)

Method Detail

areAllFinishedOrSkippedback to summary
pack-priv boolean areAllFinishedOrSkipped(Set<? extends TestDescriptor> testDescriptors)
getInProgressTestDescriptorsback to summary
pack-priv Collection<TestDescriptor> getInProgressTestDescriptors()
getInProgressTestDescriptorsWithSyntheticStartEventsback to summary
pack-priv Collection<TestDescriptor> getInProgressTestDescriptorsWithSyntheticStartEvents()
getRunnerTestDescriptorback to summary
pack-priv RunnerTestDescriptor getRunnerTestDescriptor()
getStoredResultOrSuccessfulback to summary
pack-priv TestExecutionResult getStoredResultOrSuccessful(TestDescriptor testDescriptor)
getVintageDescriptorsback to summary
private TestRun.VintageDescriptors getVintageDescriptors(VintageTestDescriptor vintageDescriptor)
hasSyntheticStartEventback to summary
pack-priv boolean hasSyntheticStartEvent(TestDescriptor testDescriptor)
isDescendantOfRunnerTestDescriptorback to summary
pack-priv boolean isDescendantOfRunnerTestDescriptor(TestDescriptor testDescriptor)
isFinishedback to summary
pack-priv boolean isFinished(TestDescriptor testDescriptor)
isFinishedOrSkippedback to summary
pack-priv boolean isFinishedOrSkipped(TestDescriptor testDescriptor)
isNotFinishedback to summary
pack-priv boolean isNotFinished(TestDescriptor testDescriptor)
isNotSkippedback to summary
pack-priv boolean isNotSkipped(TestDescriptor testDescriptor)
isNotStartedback to summary
pack-priv boolean isNotStarted(TestDescriptor testDescriptor)
isSkippedback to summary
pack-priv boolean isSkipped(TestDescriptor testDescriptor)
lookupCurrentTestDescriptorback to summary
pack-priv Optional<VintageTestDescriptor> lookupCurrentTestDescriptor(Description description)
lookupNextTestDescriptorback to summary
pack-priv Optional<VintageTestDescriptor> lookupNextTestDescriptor(Description description)
lookupUnambiguouslyOrApplyFallbackback to summary
private Optional<VintageTestDescriptor> lookupUnambiguouslyOrApplyFallback(Description description, Function<TestRun.VintageDescriptors, Optional<VintageTestDescriptor>> fallback)
markFinishedback to summary
pack-priv void markFinished(TestDescriptor testDescriptor)
markSkippedback to summary
pack-priv void markSkipped(TestDescriptor testDescriptor)
markStartedback to summary
pack-priv void markStarted(TestDescriptor testDescriptor, EventType eventType)
registerDynamicTestback to summary
pack-priv void registerDynamicTest(VintageTestDescriptor testDescriptor)
storeResultback to summary
pack-priv void storeResult(TestDescriptor testDescriptor, TestExecutionResult result)
org.junit.vintage.engine.execution back to summary

private Class TestRun.VintageDescriptors

extends Object
Class Inheritance
  • java.lang.Object
  • org.junit.vintage.engine.execution.TestRun.VintageDescriptors

Field Summary

Modifier and TypeField and Description
private final List<VintageTestDescriptor>
private static final TestRun.VintageDescriptors
private int

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
private Optional<VintageTestDescriptor>
pack-priv Optional<VintageTestDescriptor>
getUnambiguously(Description
the Description to look up
description
)

Returns the TestDescriptor that represents the specified Description.

private void
pack-priv static TestRun.VintageDescriptors
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

descriptorsback to summary
private final List<VintageTestDescriptor> descriptors
NONEback to summary
private static final TestRun.VintageDescriptors NONE
skippedOrStartedCountback to summary
private int skippedOrStartedCount

Constructor Detail

VintageDescriptorsback to summary
pack-priv VintageDescriptors(VintageTestDescriptor vintageTestDescriptor)
VintageDescriptorsback to summary
pack-priv VintageDescriptors()
VintageDescriptorsback to summary
pack-priv VintageDescriptors(List<VintageTestDescriptor> descriptors)

Method Detail

addback to summary
pack-priv void add(VintageTestDescriptor descriptor)
getNextUnstartedback to summary
private Optional<VintageTestDescriptor> getNextUnstarted()
getUnambiguouslyback to summary
pack-priv Optional<VintageTestDescriptor> getUnambiguously(Description description)

Returns the TestDescriptor that represents the specified Description.

There are edge cases where multiple Descriptions with the same uniqueId exist, e.g. when using overloaded methods to define theories. In this case, we try to find the correct TestDescriptor by checking for object identity on the Description it represents.

Parameters
description:Description

the Description to look up

Annotations
@SuppressWarnings:ReferenceEquality
incrementSkippedOrStartedback to summary
private void incrementSkippedOrStarted()
mergeback to summary
pack-priv static TestRun.VintageDescriptors merge(TestRun.VintageDescriptors a, TestRun.VintageDescriptors b)