Uses of Interface
org.junit.platform.engine.TestDescriptor
-
Packages that use TestDescriptor Package Description org.junit.jupiter.engine Core package for the JUnit Jupiter test engine.org.junit.jupiter.engine.descriptor Test descriptors used within the JUnit Jupiter test engine.org.junit.jupiter.engine.discovery Internal classes for test discovery within the JUnit Jupiter test engine.org.junit.platform.engine Public API for test engines.org.junit.platform.engine.support.descriptor TestDescriptor
-related support classes intended to be used by test engine implementations and clients of the launcher.org.junit.platform.engine.support.hierarchical Support classes and base implementation for anyTestEngine
that wishes to organize test suites hierarchically based on theNode
abstraction.org.junit.platform.launcher Public API for configuring and launching test plans.org.junit.vintage.engine Core package for the JUnit Vintage test engine.org.junit.vintage.engine.descriptor Test descriptors used within the JUnit Vintage test engine.org.junit.vintage.engine.discovery Internal classes for test discovery within the JUnit Vintage test engine. -
-
Uses of TestDescriptor in org.junit.jupiter.engine
Methods in org.junit.jupiter.engine that return TestDescriptor Modifier and Type Method Description TestDescriptor
JupiterTestEngine. discover(EngineDiscoveryRequest discoveryRequest, UniqueId uniqueId)
-
Uses of TestDescriptor in org.junit.jupiter.engine.descriptor
Classes in org.junit.jupiter.engine.descriptor that implement TestDescriptor Modifier and Type Class Description class
ClassTestDescriptor
TestDescriptor
for tests based on Java classes.class
JupiterEngineDescriptor
class
JupiterTestDescriptor
class
NestedClassTestDescriptor
TestDescriptor
for tests based on nested (but not static) Java classes.class
TestFactoryTestDescriptor
TestDescriptor
for@TestFactory
methods.class
TestMethodTestDescriptor
TestDescriptor
for tests based on Java methods.class
TestTemplateInvocationTestDescriptor
TestDescriptor
for a@TestTemplate
invocation.class
TestTemplateTestDescriptor
TestDescriptor
for@TestTemplate
methods. -
Uses of TestDescriptor in org.junit.jupiter.engine.discovery
Methods in org.junit.jupiter.engine.discovery with parameters of type TestDescriptor Modifier and Type Method Description void
DiscoverySelectorResolver. resolveSelectors(EngineDiscoveryRequest request, TestDescriptor engineDescriptor)
-
Uses of TestDescriptor in org.junit.platform.engine
Methods in org.junit.platform.engine that return TestDescriptor Modifier and Type Method Description TestDescriptor
TestEngine. discover(EngineDiscoveryRequest discoveryRequest, UniqueId uniqueId)
Discover tests according to the suppliedEngineDiscoveryRequest
.TestDescriptor
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 TestDescriptor Modifier and Type Method Description Optional<? extends TestDescriptor>
TestDescriptor. findByUniqueId(UniqueId uniqueId)
Find the descriptor with the supplied unique ID.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.Optional<TestDescriptor>
TestDescriptor. getParent()
Get the parent of this descriptor, if available.Methods in org.junit.platform.engine with parameters of type TestDescriptor Modifier and Type Method Description void
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 contains any tests.void
EngineExecutionListener. dynamicTestRegistered(TestDescriptor testDescriptor)
Must be called when a new, dynamicTestDescriptor
has been registered.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.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.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.void
EngineExecutionListener. reportingEntryPublished(TestDescriptor testDescriptor, ReportEntry entry)
Can be called for anytestDescriptor
in order to publish additional information, e.g.: 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 TestDescriptor Constructor Description ExecutionRequest(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 TestDescriptor Modifier and Type Class Description class
AbstractTestDescriptor
Abstract base implementation ofTestDescriptor
that may be used by customTestEngines
.class
EngineDescriptor
Fields in org.junit.platform.engine.support.descriptor with type parameters of type TestDescriptor Modifier and Type Field Description protected 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 TestDescriptor Modifier and Type Method Description Optional<? extends TestDescriptor>
AbstractTestDescriptor. findByUniqueId(UniqueId uniqueId)
Set<? extends TestDescriptor>
AbstractTestDescriptor. getChildren()
Optional<TestDescriptor>
AbstractTestDescriptor. getParent()
Methods in org.junit.platform.engine.support.descriptor with parameters of type TestDescriptor Modifier and Type Method Description void
AbstractTestDescriptor. addChild(TestDescriptor child)
void
AbstractTestDescriptor. removeChild(TestDescriptor child)
void
AbstractTestDescriptor. setParent(TestDescriptor parent)
-
Uses of TestDescriptor in org.junit.platform.engine.support.hierarchical
Methods in org.junit.platform.engine.support.hierarchical with parameters of type TestDescriptor Modifier and Type Method Description void
Node.DynamicTestExecutor. execute(TestDescriptor testDescriptor)
Submit a dynamic test descriptor for immediate execution. -
Uses of TestDescriptor in org.junit.platform.launcher
Methods in org.junit.platform.launcher with parameters of type TestDescriptor Modifier and Type Method Description static TestIdentifier
TestIdentifier. from(TestDescriptor testDescriptor)
Factory for creating a newTestIdentifier
from aTestDescriptor
.Method parameters in org.junit.platform.launcher with type arguments of type TestDescriptor Modifier and Type Method Description static TestPlan
TestPlan. from(Collection<TestDescriptor> engineDescriptors)
Construct a newTestPlan
from the supplied collection ofTestDescriptors
. -
Uses of TestDescriptor in org.junit.vintage.engine
Methods in org.junit.vintage.engine that return TestDescriptor Modifier and Type Method Description TestDescriptor
VintageTestEngine. discover(EngineDiscoveryRequest discoveryRequest, UniqueId uniqueId)
-
Uses of TestDescriptor in org.junit.vintage.engine.descriptor
Classes in org.junit.vintage.engine.descriptor that implement TestDescriptor Modifier and Type Class Description class
RunnerTestDescriptor
class
VintageTestDescriptor
-
Uses of TestDescriptor in org.junit.vintage.engine.discovery
Methods in org.junit.vintage.engine.discovery that return TestDescriptor Modifier and Type Method Description TestDescriptor
VintageDiscoverer. discover(EngineDiscoveryRequest discoveryRequest, UniqueId uniqueId)
-