Uses of Interface
org.junit.platform.engine.TestDescriptor
Packages that use TestDescriptor
Package
Description
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.-
Uses of TestDescriptor in org.junit.platform.engine
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 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
.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.Methods in org.junit.platform.engine.support.discovery with type parameters of type TestDescriptorModifier and TypeMethodDescription<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
.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 TypeMethodDescriptionSelectorResolver.Context.resolve
(DiscoverySelector selector) Resolve the suppliedTestDescriptor
, if possible.Methods in org.junit.platform.engine.support.discovery with parameters of type TestDescriptorModifier and TypeMethodDescriptionstatic 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> 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. -
Uses of TestDescriptor in org.junit.platform.engine.support.hierarchical
Methods in org.junit.platform.engine.support.hierarchical with parameters of type TestDescriptorModifier and TypeMethodDescriptionvoid
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.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.