Uses of Interface
org.junit.platform.engine.TestDescriptor
-
Packages that use TestDescriptor Package Description 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.discovery Configurable test discovery implementation that can be reused by different test engines.org.junit.platform.engine.support.hierarchical Support classes and base implementation for anyTestEnginethat wishes to organize test suites hierarchically based on theNodeabstraction. -
-
Uses of TestDescriptor in org.junit.platform.engine
Methods in org.junit.platform.engine that return TestDescriptor Modifier and Type Method Description TestDescriptorTestEngine. discover(EngineDiscoveryRequest discoveryRequest, UniqueId uniqueId)Discover tests according to the suppliedEngineDiscoveryRequest.TestDescriptorExecutionRequest. getRootTestDescriptor()Get the rootTestDescriptorof 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 java.util.Optional<? extends TestDescriptor>TestDescriptor. findByUniqueId(UniqueId uniqueId)Find the descriptor with the supplied unique ID.java.util.Set<? extends TestDescriptor>TestDescriptor. getChildren()Get the immutable set of children of this descriptor.default java.util.Set<? extends TestDescriptor>TestDescriptor. getDescendants()Get the immutable set of all descendants of this descriptor.java.util.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 voidTestDescriptor. addChild(TestDescriptor descriptor)Add a child to this descriptor.static booleanTestDescriptor. containsTests(TestDescriptor testDescriptor)Determine if the supplied descriptor (or any of its descendants) is a test or may potentially register tests dynamically.default voidEngineExecutionListener. dynamicTestRegistered(TestDescriptor testDescriptor)Must be called when a new, dynamicTestDescriptorhas been registered.default voidEngineExecutionListener. 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 voidEngineExecutionListener. executionSkipped(TestDescriptor testDescriptor, java.lang.String reason)Must be called when the execution of a leaf or subtree of the test tree has been skipped.default voidEngineExecutionListener. executionStarted(TestDescriptor testDescriptor)Must be called when the execution of a leaf or subtree of the test tree is about to be started.voidTestDescriptor. removeChild(TestDescriptor descriptor)Remove a child from this descriptor.default voidEngineExecutionListener. reportingEntryPublished(TestDescriptor testDescriptor, ReportEntry entry)Can be called for anyTestDescriptorin order to publish additional information to the reporting infrastructure — for example: Output that would otherwise go toSystem.outInformation about test context or test datavoidTestDescriptor. setParent(TestDescriptor parent)Set the parent of this descriptor.voidTestDescriptor.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 classAbstractTestDescriptorAbstract base implementation ofTestDescriptorthat may be used by customTestEngines.classEngineDescriptorFields in org.junit.platform.engine.support.descriptor with type parameters of type TestDescriptor Modifier and Type Field Description protected java.util.Set<TestDescriptor>AbstractTestDescriptor. childrenThe 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 java.util.Optional<? extends TestDescriptor>AbstractTestDescriptor. findByUniqueId(UniqueId uniqueId)java.util.Set<? extends TestDescriptor>AbstractTestDescriptor. getChildren()java.util.Optional<TestDescriptor>AbstractTestDescriptor. getParent()Methods in org.junit.platform.engine.support.descriptor with parameters of type TestDescriptor Modifier and Type Method Description voidAbstractTestDescriptor. addChild(TestDescriptor child)voidAbstractTestDescriptor. removeChild(TestDescriptor child)voidAbstractTestDescriptor. 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 TestDescriptor Modifier and Type Class Description classEngineDiscoveryRequestResolver<T extends TestDescriptor>Configurable test discovery implementation based onSelectorResolverandTestDescriptor.Visitorthat can be reused by differentTestEngines.static classEngineDiscoveryRequestResolver.Builder<T extends TestDescriptor>Builder forEngineDiscoveryRequestResolver.static interfaceEngineDiscoveryRequestResolver.InitializationContext<T extends TestDescriptor>The initialization context for creating resolvers and visitors that depend on theEngineDiscoveryRequestto 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 TestDescriptor Modifier and Type Method Description <T extends TestDescriptor>
java.util.Optional<T>SelectorResolver.Context. addToParent(java.util.function.Function<TestDescriptor,java.util.Optional<T>> creator)Add aTestDescriptorto an unspecified parent, usually the engine descriptor, by applying the suppliedFunctionto the new parent.<T extends TestDescriptor>
java.util.Optional<T>SelectorResolver.Context. addToParent(java.util.function.Supplier<DiscoverySelector> parentSelectorSupplier, java.util.function.Function<TestDescriptor,java.util.Optional<T>> creator)Add aTestDescriptorto a parent, specified by theDiscoverySelectorreturned by the suppliedSupplier, by applying the suppliedFunctionto the new parent.static <T extends TestDescriptor>
EngineDiscoveryRequestResolver.Builder<T>EngineDiscoveryRequestResolver. builder()Create a newEngineDiscoveryRequestResolver.Builderfor creating aEngineDiscoveryRequestResolver.Methods in org.junit.platform.engine.support.discovery that return TestDescriptor Modifier and Type Method Description TestDescriptorSelectorResolver.Match. getTestDescriptor()Get the containedTestDescriptor.Methods in org.junit.platform.engine.support.discovery that return types with arguments of type TestDescriptor Modifier and Type Method Description java.util.Optional<TestDescriptor>SelectorResolver.Context. resolve(DiscoverySelector selector)Resolve the suppliedTestDescriptor, if possible.Methods in org.junit.platform.engine.support.discovery with parameters of type TestDescriptor Modifier and Type Method Description static SelectorResolver.MatchSelectorResolver.Match. exact(TestDescriptor testDescriptor)Factory for creating an exact match without any children.static SelectorResolver.MatchSelectorResolver.Match. exact(TestDescriptor testDescriptor, java.util.function.Supplier<java.util.Set<? extends DiscoverySelector>> childSelectorsSupplier)Factory for creating an exact match with potential children.static SelectorResolver.MatchSelectorResolver.Match. partial(TestDescriptor testDescriptor)Factory for creating a partial match without any children.static SelectorResolver.MatchSelectorResolver.Match. partial(TestDescriptor testDescriptor, java.util.function.Supplier<java.util.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 TestDescriptor Modifier and Type Method Description <T extends TestDescriptor>
java.util.Optional<T>SelectorResolver.Context. addToParent(java.util.function.Function<TestDescriptor,java.util.Optional<T>> creator)Add aTestDescriptorto an unspecified parent, usually the engine descriptor, by applying the suppliedFunctionto the new parent.<T extends TestDescriptor>
java.util.Optional<T>SelectorResolver.Context. addToParent(java.util.function.Supplier<DiscoverySelector> parentSelectorSupplier, java.util.function.Function<TestDescriptor,java.util.Optional<T>> creator)Add aTestDescriptorto a parent, specified by theDiscoverySelectorreturned by the suppliedSupplier, by applying the suppliedFunctionto 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 TestDescriptor Modifier and Type Method Description voidNode.DynamicTestExecutor. execute(TestDescriptor testDescriptor)Submit a dynamic test descriptor for immediate execution.java.util.concurrent.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 voidNode. nodeFinished(C context, TestDescriptor testDescriptor, TestExecutionResult result)Callback invoked when the execution of this node has finished.default voidNode. nodeSkipped(C context, TestDescriptor testDescriptor, Node.SkipResult result)Callback invoked when the execution of this node has been skipped.
-