Uses of Interface
org.junit.platform.engine.TestDescriptor
Packages that use TestDescriptor
Package
Description
Core package for the JUnit Jupiter test engine.
Test descriptors used within the JUnit Jupiter test engine.
Internal classes for test discovery within the JUnit Jupiter test engine.
Public API for test engines.
TestDescriptor
-related support classes
intended to be used by test engine implementations and clients of
the launcher.Configurable test discovery implementation that can be reused by different test engines.
Support classes and base implementation for any
TestEngine
that wishes to organize test suites
hierarchically based on the
Node
abstraction.Public API for configuring and launching test plans.
Core support classes for the
Launcher
including the LauncherFactory
and the LauncherDiscoveryRequestBuilder
.Test Kit for testing the execution of a
TestEngine
running on the JUnit Platform.Core package for the JUnit Vintage test engine.
Test descriptors used within the JUnit Vintage test engine.
Internal classes for test discovery within the JUnit Vintage test engine.
Internal classes for test execution within the JUnit Vintage test engine.
-
Uses of TestDescriptor in org.junit.jupiter.engine
Methods in org.junit.jupiter.engine that return TestDescriptorModifier and TypeMethodDescriptionJupiterTestEngine.discover
(EngineDiscoveryRequest discoveryRequest, UniqueId uniqueId) -
Uses of TestDescriptor in org.junit.jupiter.engine.descriptor
Classes in org.junit.jupiter.engine.descriptor with type parameters of type TestDescriptorModifier and TypeClassDescription(package private) class
AbstractExtensionContext<T extends TestDescriptor>
Classes in org.junit.jupiter.engine.descriptor that implement TestDescriptorModifier and TypeClassDescriptionclass
TestDescriptor
for tests based on Java classes.class
TestDescriptor
for tests based on Java classes.(package private) class
TestDescriptor
for aDynamicContainer
.(package private) class
BaseTestDescriptor
for aDynamicNode
.(package private) class
TestDescriptor
for aDynamicTest
.class
class
class
Base class forTestDescriptors
based on Java methods.class
TestDescriptor
for tests based on nested (but not static) Java classes.class
TestDescriptor
for@TestFactory
methods.class
TestDescriptor
for@Test
methods.class
TestDescriptor
for a@TestTemplate
invocation.class
TestDescriptor
for@TestTemplate
methods.Fields in org.junit.jupiter.engine.descriptor declared as TestDescriptorMethods in org.junit.jupiter.engine.descriptor that return types with arguments of type TestDescriptorModifier and TypeMethodDescriptionprivate Optional
<TestDescriptor> TestTemplateTestDescriptor.createInvocationTestDescriptor
(org.junit.jupiter.api.extension.TestTemplateInvocationContext invocationContext, int index) Methods in org.junit.jupiter.engine.descriptor with parameters of type TestDescriptorModifier and TypeMethodDescriptionprivate void
TestTemplateTestDescriptor.execute
(Node.DynamicTestExecutor dynamicTestExecutor, TestDescriptor testDescriptor) void
TestFactoryTestDescriptor.nodeFinished
(JupiterEngineExecutionContext context, TestDescriptor descriptor, TestExecutionResult result) OverrideTestMethodTestDescriptor.nodeFinished(org.junit.jupiter.engine.execution.JupiterEngineExecutionContext, org.junit.platform.engine.TestDescriptor, org.junit.platform.engine.TestExecutionResult)
as a no-op, since theTestWatcher
API is not supported for@TestFactory
containers.void
TestMethodTestDescriptor.nodeFinished
(JupiterEngineExecutionContext context, TestDescriptor descriptor, TestExecutionResult result) InvoketestSuccessful()
,testAborted()
, ortestFailed()
on each registeredTestWatcher
according to the status of the suppliedTestExecutionResult
, in reverse registration order.void
MethodBasedTestDescriptor.nodeSkipped
(JupiterEngineExecutionContext context, TestDescriptor descriptor, Node.SkipResult result) InvokeTestWatcher.testDisabled(ExtensionContext, Optional)
on each registeredTestWatcher
, in registration order.void
TestFactoryTestDescriptor.nodeSkipped
(JupiterEngineExecutionContext context, TestDescriptor descriptor, Node.SkipResult result) OverrideMethodBasedTestDescriptor.nodeSkipped(org.junit.jupiter.engine.execution.JupiterEngineExecutionContext, org.junit.platform.engine.TestDescriptor, org.junit.platform.engine.support.hierarchical.Node.SkipResult)
as a no-op, since theTestWatcher
API is not supported for@TestFactory
containers. -
Uses of TestDescriptor in org.junit.jupiter.engine.discovery
Classes in org.junit.jupiter.engine.discovery with type parameters of type TestDescriptorModifier and TypeClassDescription(package private) class
AbstractOrderingVisitor<PARENT extends TestDescriptor,
CHILD extends TestDescriptor, WRAPPER extends AbstractAnnotatedDescriptorWrapper<?>> Abstract base class for visitors that order children nodes.(package private) class
AbstractOrderingVisitor<PARENT extends TestDescriptor,
CHILD extends TestDescriptor, WRAPPER extends AbstractAnnotatedDescriptorWrapper<?>> Abstract base class for visitors that order children nodes.Fields in org.junit.jupiter.engine.discovery declared as TestDescriptorModifier and TypeFieldDescriptionprivate final TestDescriptor
AbstractAnnotatedDescriptorWrapper.testDescriptor
Methods in org.junit.jupiter.engine.discovery that return TestDescriptorModifier and TypeMethodDescriptionprotected abstract TestDescriptor
MethodSelectorResolver.MethodType.createTestDescriptor
(UniqueId uniqueId, Class<?> testClass, Method method, JupiterConfiguration configuration) (package private) TestDescriptor
AbstractAnnotatedDescriptorWrapper.getTestDescriptor()
Methods in org.junit.jupiter.engine.discovery that return types with arguments of type TestDescriptorModifier and TypeMethodDescriptionprivate Optional
<TestDescriptor> MethodSelectorResolver.MethodType.resolve
(List<Class<?>> enclosingClasses, Class<?> testClass, Method method, SelectorResolver.Context context, JupiterConfiguration configuration) private Optional
<TestDescriptor> MethodSelectorResolver.MethodType.resolveUniqueIdIntoTestDescriptor
(UniqueId uniqueId, SelectorResolver.Context context, JupiterConfiguration configuration) Methods in org.junit.jupiter.engine.discovery with parameters of type TestDescriptorModifier and TypeMethodDescriptionprivate UniqueId
MethodSelectorResolver.MethodType.createUniqueId
(Method method, TestDescriptor parent) protected void
AbstractOrderingVisitor.doWithMatchingDescriptor
(Class<PARENT> parentTestDescriptorType, TestDescriptor testDescriptor, Consumer<PARENT> action, Function<PARENT, String> errorMessageBuilder) private Supplier
<Set<? extends DiscoverySelector>> MethodSelectorResolver.expansionCallback
(TestDescriptor testDescriptor) private ClassTestDescriptor
ClassSelectorResolver.newClassTestDescriptor
(TestDescriptor parent, Class<?> testClass) private NestedClassTestDescriptor
ClassSelectorResolver.newNestedClassTestDescriptor
(TestDescriptor parent, Class<?> testClass) protected void
AbstractOrderingVisitor.orderChildrenTestDescriptors
(TestDescriptor parentTestDescriptor, Class<CHILD> matchingChildrenType, Function<CHILD, WRAPPER> descriptorWrapperFactory, AbstractOrderingVisitor<PARENT, CHILD, WRAPPER>.DescriptorWrapperOrderer descriptorWrapperOrderer) void
ClassOrderingVisitor.visit
(TestDescriptor testDescriptor) void
MethodOrderingVisitor.visit
(TestDescriptor testDescriptor) Method parameters in org.junit.jupiter.engine.discovery with type arguments of type TestDescriptorModifier and TypeMethodDescriptionprivate SelectorResolver.Resolution
MethodSelectorResolver.resolve
(SelectorResolver.Context context, List<Class<?>> enclosingClasses, Class<?> testClass, Supplier<Method> methodSupplier, BiFunction<TestDescriptor, Supplier<Set<? extends DiscoverySelector>>, SelectorResolver.Match> matchFactory) Constructors in org.junit.jupiter.engine.discovery with parameters of type TestDescriptorModifierConstructorDescription(package private)
AbstractAnnotatedDescriptorWrapper
(TestDescriptor testDescriptor, E annotatedElement) -
Uses of TestDescriptor in org.junit.platform.engine
Fields in org.junit.platform.engine declared as TestDescriptorModifier and TypeFieldDescriptionprivate final TestDescriptor
ExecutionRequest.rootTestDescriptor
Methods in org.junit.platform.engine that return TestDescriptorModifier and TypeMethodDescriptionTestEngine.discover
(EngineDiscoveryRequest discoveryRequest, UniqueId uniqueId) Discover tests according to the suppliedEngineDiscoveryRequest
.ExecutionRequest.getRootTestDescriptor()
Get the rootTestDescriptor
of the engine that processes this request.Methods in org.junit.platform.engine that return types with arguments of type TestDescriptorModifier and TypeMethodDescriptionOptional
<? extends TestDescriptor> TestDescriptor.findByUniqueId
(UniqueId uniqueId) Find the descriptor with the supplied unique ID.default Set
<? extends TestDescriptor> TestDescriptor.getAncestors()
Get the immutable set of all ancestors of this descriptor.Set
<? extends TestDescriptor> TestDescriptor.getChildren()
Get the immutable set of children of this descriptor.default Set
<? extends TestDescriptor> TestDescriptor.getDescendants()
Get the immutable set of all descendants of this descriptor.TestDescriptor.getParent()
Get the parent of this descriptor, if available.Methods in org.junit.platform.engine with parameters of type TestDescriptorModifier and TypeMethodDescriptionvoid
TestDescriptor.addChild
(TestDescriptor descriptor) Add a child to this descriptor.static boolean
TestDescriptor.containsTests
(TestDescriptor testDescriptor) Determine if the supplied descriptor (or any of its descendants) is a test or may potentially register tests dynamically.static ExecutionRequest
ExecutionRequest.create
(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters) Factory for creating an execution request.default void
EngineExecutionListener.dynamicTestRegistered
(TestDescriptor testDescriptor) Must be called when a new, dynamicTestDescriptor
has been registered.default void
EngineExecutionListener.executionFinished
(TestDescriptor testDescriptor, TestExecutionResult testExecutionResult) Must be called when the execution of a leaf or subtree of the test tree has finished, regardless of the outcome.default void
EngineExecutionListener.executionSkipped
(TestDescriptor testDescriptor, String reason) Must be called when the execution of a leaf or subtree of the test tree has been skipped.default void
EngineExecutionListener.executionStarted
(TestDescriptor testDescriptor) Must be called when the execution of a leaf or subtree of the test tree is about to be started.void
TestDescriptor.removeChild
(TestDescriptor descriptor) Remove a child from this descriptor.default void
EngineExecutionListener.reportingEntryPublished
(TestDescriptor testDescriptor, ReportEntry entry) Can be called for anyTestDescriptor
in order to publish additional information to the reporting infrastructure — for example: Output that would otherwise go toSystem.out
Information about test context or test datavoid
TestDescriptor.setParent
(TestDescriptor parent) Set the parent of this descriptor.void
TestDescriptor.Visitor.visit
(TestDescriptor descriptor) Visit aTestDescriptor
.Constructors in org.junit.platform.engine with parameters of type TestDescriptorModifierConstructorDescriptionExecutionRequest
(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters) -
Uses of TestDescriptor in org.junit.platform.engine.support.descriptor
Classes in org.junit.platform.engine.support.descriptor that implement TestDescriptorModifier and TypeClassDescriptionclass
Abstract base implementation ofTestDescriptor
that may be used by customTestEngines
.class
Fields in org.junit.platform.engine.support.descriptor declared as TestDescriptorFields in org.junit.platform.engine.support.descriptor with type parameters of type TestDescriptorModifier and TypeFieldDescriptionprotected final Set
<TestDescriptor> AbstractTestDescriptor.children
The synchronized set of children associated with thisTestDescriptor
.Methods in org.junit.platform.engine.support.descriptor that return types with arguments of type TestDescriptorModifier and TypeMethodDescriptionOptional
<? extends TestDescriptor> AbstractTestDescriptor.findByUniqueId
(UniqueId uniqueId) final Set
<? extends TestDescriptor> AbstractTestDescriptor.getChildren()
final Optional
<TestDescriptor> AbstractTestDescriptor.getParent()
Methods in org.junit.platform.engine.support.descriptor with parameters of type TestDescriptorModifier and TypeMethodDescriptionvoid
AbstractTestDescriptor.addChild
(TestDescriptor child) void
AbstractTestDescriptor.removeChild
(TestDescriptor child) final void
AbstractTestDescriptor.setParent
(TestDescriptor parent) -
Uses of TestDescriptor in org.junit.platform.engine.support.discovery
Classes in org.junit.platform.engine.support.discovery with type parameters of type TestDescriptorModifier and TypeClassDescriptionclass
EngineDiscoveryRequestResolver<T extends TestDescriptor>
Configurable test discovery implementation based onSelectorResolver
andTestDescriptor.Visitor
that can be reused by differentTestEngines
.static class
Builder forEngineDiscoveryRequestResolver
.private static class
static interface
The initialization context for creating resolvers and visitors that depend on theEngineDiscoveryRequest
to be resolved or the engine descriptor that will be used to collect the results.Fields in org.junit.platform.engine.support.discovery declared as TestDescriptorModifier and TypeFieldDescriptionprivate final TestDescriptor
EngineDiscoveryRequestResolution.engineDescriptor
private final T
EngineDiscoveryRequestResolver.DefaultInitializationContext.engineDescriptor
private final TestDescriptor
EngineDiscoveryRequestResolution.DefaultContext.parent
private final TestDescriptor
SelectorResolver.Match.testDescriptor
Methods in org.junit.platform.engine.support.discovery with type parameters of type TestDescriptorModifier and TypeMethodDescription<T extends TestDescriptor>
Optional<T> EngineDiscoveryRequestResolution.DefaultContext.addToParent
(Function<TestDescriptor, Optional<T>> creator) <T extends TestDescriptor>
Optional<T> EngineDiscoveryRequestResolution.DefaultContext.addToParent
(Supplier<DiscoverySelector> parentSelectorSupplier, Function<TestDescriptor, Optional<T>> creator) <T extends TestDescriptor>
Optional<T> SelectorResolver.Context.addToParent
(Function<TestDescriptor, Optional<T>> creator) Add aTestDescriptor
to an unspecified parent, usually the engine descriptor, by applying the suppliedFunction
to the new parent.<T extends TestDescriptor>
Optional<T> SelectorResolver.Context.addToParent
(Supplier<DiscoverySelector> parentSelectorSupplier, Function<TestDescriptor, Optional<T>> creator) Add aTestDescriptor
to a parent, specified by theDiscoverySelector
returned by the suppliedSupplier
, by applying the suppliedFunction
to the new parent.static <T extends TestDescriptor>
EngineDiscoveryRequestResolver.Builder<T> EngineDiscoveryRequestResolver.builder()
Create a newEngineDiscoveryRequestResolver.Builder
for creating aEngineDiscoveryRequestResolver
.private <T extends TestDescriptor>
Optional<T> EngineDiscoveryRequestResolution.DefaultContext.createAndAdd
(TestDescriptor parent, Function<TestDescriptor, Optional<T>> creator) Methods in org.junit.platform.engine.support.discovery that return TestDescriptorModifier and TypeMethodDescriptionSelectorResolver.Match.getTestDescriptor()
Get the containedTestDescriptor
.Methods in org.junit.platform.engine.support.discovery that return types with arguments of type TestDescriptorModifier and TypeMethodDescriptionEngineDiscoveryRequestResolution.DefaultContext.resolve
(DiscoverySelector selector) SelectorResolver.Context.resolve
(DiscoverySelector selector) Resolve the suppliedTestDescriptor
, if possible.Methods in org.junit.platform.engine.support.discovery with parameters of type TestDescriptorModifier and TypeMethodDescriptionprivate <T extends TestDescriptor>
Optional<T> EngineDiscoveryRequestResolution.DefaultContext.createAndAdd
(TestDescriptor parent, Function<TestDescriptor, Optional<T>> creator) static SelectorResolver.Match
SelectorResolver.Match.exact
(TestDescriptor testDescriptor) Factory for creating an exact match without any children.static SelectorResolver.Match
SelectorResolver.Match.exact
(TestDescriptor testDescriptor, Supplier<Set<? extends DiscoverySelector>> childSelectorsSupplier) Factory for creating an exact match with potential children.static SelectorResolver.Match
SelectorResolver.Match.partial
(TestDescriptor testDescriptor) Factory for creating a partial match without any children.static SelectorResolver.Match
SelectorResolver.Match.partial
(TestDescriptor testDescriptor, Supplier<Set<? extends DiscoverySelector>> childSelectorsSupplier) Factory for creating a partial match with potential children.Method parameters in org.junit.platform.engine.support.discovery with type arguments of type TestDescriptorModifier and TypeMethodDescription<T extends TestDescriptor>
Optional<T> EngineDiscoveryRequestResolution.DefaultContext.addToParent
(Function<TestDescriptor, Optional<T>> creator) <T extends TestDescriptor>
Optional<T> EngineDiscoveryRequestResolution.DefaultContext.addToParent
(Supplier<DiscoverySelector> parentSelectorSupplier, Function<TestDescriptor, Optional<T>> creator) <T extends TestDescriptor>
Optional<T> SelectorResolver.Context.addToParent
(Function<TestDescriptor, Optional<T>> creator) Add aTestDescriptor
to an unspecified parent, usually the engine descriptor, by applying the suppliedFunction
to the new parent.<T extends TestDescriptor>
Optional<T> SelectorResolver.Context.addToParent
(Supplier<DiscoverySelector> parentSelectorSupplier, Function<TestDescriptor, Optional<T>> creator) Add aTestDescriptor
to a parent, specified by theDiscoverySelector
returned by the suppliedSupplier
, by applying the suppliedFunction
to the new parent.private <T extends TestDescriptor>
Optional<T> EngineDiscoveryRequestResolution.DefaultContext.createAndAdd
(TestDescriptor parent, Function<TestDescriptor, Optional<T>> creator) Constructors in org.junit.platform.engine.support.discovery with parameters of type TestDescriptorModifierConstructorDescription(package private)
DefaultContext
(TestDescriptor parent) (package private)
EngineDiscoveryRequestResolution
(EngineDiscoveryRequest request, TestDescriptor engineDescriptor, List<SelectorResolver> resolvers, List<TestDescriptor.Visitor> visitors) private
Match
(TestDescriptor testDescriptor, Supplier<Set<? extends DiscoverySelector>> childSelectorsSupplier, SelectorResolver.Match.Type type) -
Uses of TestDescriptor in org.junit.platform.engine.support.hierarchical
Fields in org.junit.platform.engine.support.hierarchical declared as TestDescriptorFields in org.junit.platform.engine.support.hierarchical with type parameters of type TestDescriptorModifier and TypeFieldDescriptionprivate final Map
<TestDescriptor, Node.ExecutionMode> NodeExecutionAdvisor.forcedDescendantExecutionModeByTestDescriptor
private final Map
<TestDescriptor, ResourceLock> NodeExecutionAdvisor.resourceLocksByTestDescriptor
Methods in org.junit.platform.engine.support.hierarchical with parameters of type TestDescriptorModifier and TypeMethodDescription(package private) static <C extends EngineExecutionContext>
Node<C> NodeUtils.asNode
(TestDescriptor testDescriptor) private void
NodeTreeWalker.doForChildrenRecursively
(TestDescriptor parent, Consumer<TestDescriptor> consumer) void
Node.DynamicTestExecutor.execute
(TestDescriptor testDescriptor) Submit a dynamic test descriptor for immediate execution.Future
<?> Node.DynamicTestExecutor.execute
(TestDescriptor testDescriptor, EngineExecutionListener executionListener) Submit a dynamic test descriptor for immediate execution with a custom, potentially no-op, execution listener.void
NodeTestTask.DefaultDynamicTestExecutor.execute
(TestDescriptor testDescriptor) Future
<?> NodeTestTask.DefaultDynamicTestExecutor.execute
(TestDescriptor testDescriptor, EngineExecutionListener executionListener) (package private) void
NodeExecutionAdvisor.forceDescendantExecutionMode
(TestDescriptor testDescriptor, Node.ExecutionMode executionMode) private void
NodeTreeWalker.forceDescendantExecutionModeRecursively
(NodeExecutionAdvisor advisor, TestDescriptor testDescriptor) private Set
<ExclusiveResource> NodeTreeWalker.getExclusiveResources
(TestDescriptor testDescriptor) (package private) Optional
<Node.ExecutionMode> NodeExecutionAdvisor.getForcedExecutionMode
(TestDescriptor testDescriptor) (package private) ResourceLock
NodeExecutionAdvisor.getResourceLock
(TestDescriptor testDescriptor) private Optional
<Node.ExecutionMode> NodeExecutionAdvisor.lookupExecutionModeForcedByAncestor
(TestDescriptor testDescriptor) default void
Node.nodeFinished
(C context, TestDescriptor testDescriptor, TestExecutionResult result) Callback invoked when the execution of this node has finished.default void
Node.nodeSkipped
(C context, TestDescriptor testDescriptor, Node.SkipResult result) Callback invoked when the execution of this node has been skipped.(package private) void
NodeExecutionAdvisor.useResourceLock
(TestDescriptor testDescriptor, ResourceLock resourceLock) (package private) NodeExecutionAdvisor
NodeTreeWalker.walk
(TestDescriptor rootDescriptor) private void
NodeTreeWalker.walk
(TestDescriptor globalLockDescriptor, TestDescriptor testDescriptor, NodeExecutionAdvisor advisor) Method parameters in org.junit.platform.engine.support.hierarchical with type arguments of type TestDescriptorModifier and TypeMethodDescriptionprivate void
NodeTreeWalker.doForChildrenRecursively
(TestDescriptor parent, Consumer<TestDescriptor> consumer) Constructors in org.junit.platform.engine.support.hierarchical with parameters of type TestDescriptorModifierConstructorDescription(package private)
NodeTestTask
(NodeTestTaskContext taskContext, TestDescriptor testDescriptor) (package private)
NodeTestTask
(NodeTestTaskContext taskContext, TestDescriptor testDescriptor, Runnable finalizer) -
Uses of TestDescriptor in org.junit.platform.launcher
Methods in org.junit.platform.launcher with parameters of type TestDescriptorModifier and TypeMethodDescriptionstatic TestIdentifier
TestIdentifier.from
(TestDescriptor testDescriptor) Factory for creating a newTestIdentifier
from aTestDescriptor
.Method parameters in org.junit.platform.launcher with type arguments of type TestDescriptorModifier and TypeMethodDescriptionstatic TestPlan
TestPlan.from
(Collection<TestDescriptor> engineDescriptors, ConfigurationParameters configurationParameters) Construct a newTestPlan
from the supplied collection ofTestDescriptors
. -
Uses of TestDescriptor in org.junit.platform.launcher.core
Classes in org.junit.platform.launcher.core that implement TestDescriptorModifier and TypeClassDescription(package private) class
Represents an error thrown by aTestEngine
during discovery.Fields in org.junit.platform.launcher.core declared as TestDescriptorModifier and TypeFieldDescriptionprivate final TestDescriptor
OutcomeDelayingEngineExecutionListener.engineDescriptor
Fields in org.junit.platform.launcher.core with type parameters of type TestDescriptorModifier and TypeFieldDescriptionprivate final Map
<TestEngine, TestDescriptor> LauncherDiscoveryResult.testEngineDescriptors
Methods in org.junit.platform.launcher.core that return TestDescriptorModifier and TypeMethodDescriptionprivate TestDescriptor
EngineDiscoveryOrchestrator.discoverEngineRoot
(TestEngine testEngine, LauncherDiscoveryRequest request, LauncherDiscoveryListener listener, Function<String, UniqueId> uniqueIdCreator) LauncherDiscoveryResult.getEngineTestDescriptor
(TestEngine testEngine) Methods in org.junit.platform.launcher.core that return types with arguments of type TestDescriptorModifier and TypeMethodDescriptionprivate Map
<TestEngine, TestDescriptor> EngineDiscoveryOrchestrator.discover
(LauncherDiscoveryRequest request, EngineDiscoveryOrchestrator.Phase phase, Function<String, UniqueId> uniqueIdCreator) private Map
<TestEngine, TestDescriptor> EngineDiscoveryOrchestrator.discoverSafely
(LauncherDiscoveryRequest request, EngineDiscoveryOrchestrator.Phase phase, LauncherDiscoveryListener listener, Function<String, UniqueId> uniqueIdCreator) (package private) Collection
<TestDescriptor> LauncherDiscoveryResult.getEngineTestDescriptors()
private Map
<TestEngine, TestDescriptor> LauncherDiscoveryResult.retainEngines
(Predicate<? super TestDescriptor> predicate) Methods in org.junit.platform.launcher.core with parameters of type TestDescriptorModifier and TypeMethodDescriptionvoid
CompositeEngineExecutionListener.dynamicTestRegistered
(TestDescriptor testDescriptor) void
DelegatingEngineExecutionListener.dynamicTestRegistered
(TestDescriptor testDescriptor) void
ExecutionListenerAdapter.dynamicTestRegistered
(TestDescriptor testDescriptor) private void
EngineExecutionOrchestrator.execute
(TestDescriptor engineDescriptor, EngineExecutionListener listener, ConfigurationParameters configurationParameters, TestEngine testEngine) void
CompositeEngineExecutionListener.executionFinished
(TestDescriptor testDescriptor, TestExecutionResult testExecutionResult) void
DelegatingEngineExecutionListener.executionFinished
(TestDescriptor testDescriptor, TestExecutionResult testExecutionResult) void
ExecutionListenerAdapter.executionFinished
(TestDescriptor testDescriptor, TestExecutionResult testExecutionResult) void
OutcomeDelayingEngineExecutionListener.executionFinished
(TestDescriptor testDescriptor, TestExecutionResult executionResult) void
StackTracePruningEngineExecutionListener.executionFinished
(TestDescriptor testDescriptor, TestExecutionResult testExecutionResult) void
CompositeEngineExecutionListener.executionSkipped
(TestDescriptor testDescriptor, String reason) void
DelegatingEngineExecutionListener.executionSkipped
(TestDescriptor testDescriptor, String reason) void
ExecutionListenerAdapter.executionSkipped
(TestDescriptor testDescriptor, String reason) void
OutcomeDelayingEngineExecutionListener.executionSkipped
(TestDescriptor testDescriptor, String reason) void
CompositeEngineExecutionListener.executionStarted
(TestDescriptor testDescriptor) void
DelegatingEngineExecutionListener.executionStarted
(TestDescriptor testDescriptor) void
ExecutionListenerAdapter.executionStarted
(TestDescriptor testDescriptor) void
OutcomeDelayingEngineExecutionListener.executionStarted
(TestDescriptor testDescriptor) EngineDiscoveryResultValidator.getCyclicGraphInfo
(TestDescriptor root) StackTracePruningEngineExecutionListener.getTestClassNames
(TestDescriptor testDescriptor) private TestIdentifier
ExecutionListenerAdapter.getTestIdentifier
(TestDescriptor testDescriptor) private boolean
EngineDiscoveryOrchestrator.isExcluded
(TestDescriptor descriptor, FilterResult filterResult) private void
EngineDiscoveryOrchestrator.populateExclusionReasonInMap
(Optional<String> reason, TestDescriptor testDescriptor, Map<String, List<TestDescriptor>> excludedTestDescriptorsByReason) void
CompositeEngineExecutionListener.reportingEntryPublished
(TestDescriptor testDescriptor, ReportEntry entry) void
DelegatingEngineExecutionListener.reportingEntryPublished
(TestDescriptor testDescriptor, ReportEntry entry) void
ExecutionListenerAdapter.reportingEntryPublished
(TestDescriptor testDescriptor, ReportEntry entry) (package private) void
EngineDiscoveryResultValidator.validate
(TestEngine testEngine, TestDescriptor root) Perform common validation checks.Method parameters in org.junit.platform.launcher.core with type arguments of type TestDescriptorModifier and TypeMethodDescriptionprivate void
EngineDiscoveryOrchestrator.acceptInAllTestEngines
(Map<TestEngine, TestDescriptor> testEngineDescriptors, TestDescriptor.Visitor visitor) private void
EngineDiscoveryOrchestrator.applyPostDiscoveryFilters
(Map<TestEngine, TestDescriptor> testEngineDescriptors, List<PostDiscoveryFilter> filters) private void
EngineDiscoveryOrchestrator.logTestDescriptorExclusionReasons
(Map<String, List<TestDescriptor>> excludedTestDescriptorsByReason) private void
EngineDiscoveryOrchestrator.populateExclusionReasonInMap
(Optional<String> reason, TestDescriptor testDescriptor, Map<String, List<TestDescriptor>> excludedTestDescriptorsByReason) private void
EngineDiscoveryOrchestrator.prune
(Map<TestEngine, TestDescriptor> testEngineDescriptors) Prune all branches in the tree ofTestDescriptors
that do not have executable tests.private Map
<TestEngine, TestDescriptor> LauncherDiscoveryResult.retainEngines
(Predicate<? super TestDescriptor> predicate) LauncherDiscoveryResult.withRetainedEngines
(Predicate<? super TestDescriptor> predicate) Constructors in org.junit.platform.launcher.core with parameters of type TestDescriptorModifierConstructorDescription(package private)
OutcomeDelayingEngineExecutionListener
(EngineExecutionListener delegate, TestDescriptor engineDescriptor) Constructor parameters in org.junit.platform.launcher.core with type arguments of type TestDescriptorModifierConstructorDescription(package private)
LauncherDiscoveryResult
(Map<TestEngine, TestDescriptor> testEngineDescriptors, ConfigurationParameters configurationParameters) -
Uses of TestDescriptor in org.junit.platform.testkit.engine
Fields in org.junit.platform.testkit.engine declared as TestDescriptorModifier and TypeFieldDescriptionprivate final TestDescriptor
Event.testDescriptor
private final TestDescriptor
Execution.testDescriptor
Methods in org.junit.platform.testkit.engine that return TestDescriptorModifier and TypeMethodDescriptionEvent.getTestDescriptor()
Get theTestDescriptor
associated with thisEvent
.Execution.getTestDescriptor()
Get theTestDescriptor
for thisExecution
.Methods in org.junit.platform.testkit.engine with parameters of type TestDescriptorModifier and TypeMethodDescriptionstatic Event
Event.dynamicTestRegistered
(TestDescriptor testDescriptor) Create anEvent
for the dynamic registration of the suppliedTestDescriptor
.void
ExecutionRecorder.dynamicTestRegistered
(TestDescriptor testDescriptor) Record anEvent
for a dynamically registered container or test.static Event
Event.executionFinished
(TestDescriptor testDescriptor, TestExecutionResult result) void
ExecutionRecorder.executionFinished
(TestDescriptor testDescriptor, TestExecutionResult testExecutionResult) Record anEvent
for a container or test that completed with the providedTestExecutionResult
.static Event
Event.executionSkipped
(TestDescriptor testDescriptor, String reason) void
ExecutionRecorder.executionSkipped
(TestDescriptor testDescriptor, String reason) Record anEvent
for a container or test that was skipped.static Event
Event.executionStarted
(TestDescriptor testDescriptor) Create a startedEvent
for the suppliedTestDescriptor
.void
ExecutionRecorder.executionStarted
(TestDescriptor testDescriptor) Record anEvent
for a container or test that started.static Execution
Execution.finished
(TestDescriptor testDescriptor, Instant startInstant, Instant endInstant, TestExecutionResult executionResult) Create a new instance of anExecution
that finished with the providedTestExecutionResult
.static Event
Event.reportingEntryPublished
(TestDescriptor testDescriptor, ReportEntry entry) void
ExecutionRecorder.reportingEntryPublished
(TestDescriptor testDescriptor, ReportEntry entry) Record anEvent
for a publishedReportEntry
.static Execution
Execution.skipped
(TestDescriptor testDescriptor, Instant startInstant, Instant endInstant, String skipReason) Create a new instance of anExecution
that was skipped with the providedskipReason
.Method parameters in org.junit.platform.testkit.engine with type arguments of type TestDescriptorModifier and TypeMethodDescriptionEvent.byTestDescriptor
(Predicate<? super TestDescriptor> testDescriptorPredicate) EngineExecutionResults.filterEvents
(List<Event> events, Predicate<? super TestDescriptor> predicate) Filter the supplied list of events using the supplied predicate.Constructors in org.junit.platform.testkit.engine with parameters of type TestDescriptorModifierConstructorDescriptionprivate
Event
(EventType type, TestDescriptor testDescriptor, Object payload) Construct anEvent
with the supplied arguments.private
Execution
(TestDescriptor testDescriptor, Instant startInstant, Instant endInstant, TerminationInfo terminationInfo) -
Uses of TestDescriptor in org.junit.vintage.engine
Methods in org.junit.vintage.engine that return TestDescriptorModifier and TypeMethodDescriptionVintageTestEngine.discover
(EngineDiscoveryRequest discoveryRequest, UniqueId uniqueId) -
Uses of TestDescriptor in org.junit.vintage.engine.descriptor
Classes in org.junit.vintage.engine.descriptor that implement TestDescriptorModifier and TypeClassDescriptionclass
class
class
Methods in org.junit.vintage.engine.descriptor that return types with arguments of type TestDescriptor -
Uses of TestDescriptor in org.junit.vintage.engine.discovery
Fields in org.junit.vintage.engine.discovery with type parameters of type TestDescriptorModifier and TypeFieldDescriptionprivate static final EngineDiscoveryRequestResolver
<TestDescriptor> VintageDiscoverer.resolver
Methods in org.junit.vintage.engine.discovery with parameters of type TestDescriptorModifier and TypeMethodDescriptionprivate Optional
<RunnerTestDescriptor> MethodSelectorResolver.addFilter
(TestDescriptor parent, Function<RunnerTestDescriptor, org.junit.runner.manipulation.Filter> filterCreator) private RunnerTestDescriptor
ClassSelectorResolver.createRunnerTestDescriptor
(TestDescriptor parent, Class<?> testClass, org.junit.runner.Runner runner) Method parameters in org.junit.vintage.engine.discovery with type arguments of type TestDescriptorModifier and TypeMethodDescriptionprivate Set
<org.junit.runner.Description> UniqueIdFilter.determineDescendants
(Optional<? extends TestDescriptor> identifiedTestDescriptor) private Deque
<org.junit.runner.Description> UniqueIdFilter.determinePath
(RunnerTestDescriptor runnerTestDescriptor, Optional<? extends TestDescriptor> identifiedTestDescriptor) -
Uses of TestDescriptor in org.junit.vintage.engine.execution
Fields in org.junit.vintage.engine.execution with type parameters of type TestDescriptorModifier and TypeFieldDescriptionprivate final Map
<TestDescriptor, List<TestExecutionResult>> TestRun.executionResults
private final Set
<TestDescriptor> TestRun.finishedDescriptors
private final Map
<TestDescriptor, EventType> TestRun.inProgressDescriptors
private final Set
<TestDescriptor> TestRun.runnerDescendants
private final Set
<TestDescriptor> TestRun.skippedDescriptors
private final Set
<TestDescriptor> TestRun.startedDescriptors
Methods in org.junit.vintage.engine.execution that return TestDescriptorModifier and TypeMethodDescriptionprivate TestDescriptor
RunListenerAdapter.findParent
(org.junit.runner.Description description, Function<org.junit.runner.Description, Optional<VintageTestDescriptor>> lookup) private TestDescriptor
RunListenerAdapter.lookupOrRegisterCurrentTestDescriptor
(org.junit.runner.Description description) private TestDescriptor
RunListenerAdapter.lookupOrRegisterNextTestDescriptor
(org.junit.runner.Description description) private TestDescriptor
RunListenerAdapter.lookupOrRegisterTestDescriptor
(org.junit.runner.Description description, Function<org.junit.runner.Description, Optional<VintageTestDescriptor>> lookup) Methods in org.junit.vintage.engine.execution that return types with arguments of type TestDescriptorMethods in org.junit.vintage.engine.execution with parameters of type TestDescriptorModifier and TypeMethodDescriptionprivate boolean
RunListenerAdapter.canFinish
(TestDescriptor testDescriptor) private boolean
RunListenerAdapter.canStart
(TestDescriptor testDescriptor) RunListenerAdapter.determineReasonForIgnoredTest
(TestDescriptor testDescriptor, org.junit.runner.Description description) private void
RunListenerAdapter.dynamicTestRegistered
(TestDescriptor testDescriptor) private void
RunListenerAdapter.fireExecutionFinished
(TestDescriptor testDescriptor) private void
RunListenerAdapter.fireExecutionFinishedForInProgressNonAncestorTestDescriptorsWithSyntheticStartEvents
(TestDescriptor testDescriptor) private void
RunListenerAdapter.fireExecutionSkipped
(TestDescriptor testDescriptor, String reason) private void
RunListenerAdapter.fireExecutionStarted
(TestDescriptor testDescriptor, EventType eventType) (package private) TestExecutionResult
TestRun.getStoredResultOrSuccessful
(TestDescriptor testDescriptor) private void
RunListenerAdapter.handleFailure
(org.junit.runner.notification.Failure failure, Function<Throwable, TestExecutionResult> resultCreator, TestDescriptor testDescriptor) (package private) boolean
TestRun.hasSyntheticStartEvent
(TestDescriptor testDescriptor) private boolean
RunListenerAdapter.isAncestor
(TestDescriptor candidate, TestDescriptor testDescriptor) (package private) boolean
TestRun.isDescendantOfRunnerTestDescriptor
(TestDescriptor testDescriptor) (package private) boolean
TestRun.isFinished
(TestDescriptor testDescriptor) (package private) boolean
TestRun.isFinishedOrSkipped
(TestDescriptor testDescriptor) (package private) boolean
TestRun.isNotFinished
(TestDescriptor testDescriptor) (package private) boolean
TestRun.isNotSkipped
(TestDescriptor testDescriptor) (package private) boolean
TestRun.isNotStarted
(TestDescriptor testDescriptor) (package private) boolean
TestRun.isSkipped
(TestDescriptor testDescriptor) (package private) void
TestRun.markFinished
(TestDescriptor testDescriptor) (package private) void
TestRun.markSkipped
(TestDescriptor testDescriptor) (package private) void
TestRun.markStarted
(TestDescriptor testDescriptor, EventType eventType) private void
RunListenerAdapter.reportContainerFinished
(TestDescriptor containerTestDescriptor) (package private) void
TestRun.storeResult
(TestDescriptor testDescriptor, TestExecutionResult result) private void
RunListenerAdapter.testFinished
(TestDescriptor descriptor) private void
RunListenerAdapter.testIgnored
(TestDescriptor testDescriptor, String reason) private void
RunListenerAdapter.testStarted
(TestDescriptor testDescriptor, EventType eventType) Method parameters in org.junit.vintage.engine.execution with type arguments of type TestDescriptorModifier and TypeMethodDescription(package private) boolean
TestRun.areAllFinishedOrSkipped
(Set<? extends TestDescriptor> testDescriptors) private void
RunListenerAdapter.fireExecutionStartedIncludingUnstartedAncestors
(Optional<TestDescriptor> parent)