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.reporting Classes used by test engines to report additional data to execution listeners.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.org.junit.platform.launcher Public API for configuring and launching test plans.org.junit.platform.launcher.core Core support classes for theLauncherincluding theLauncherFactoryand theLauncherDiscoveryRequestBuilder.org.junit.platform.testkit.engine Test Kit for testing the execution of aTestEnginerunning on the JUnit Platform.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.org.junit.vintage.engine.execution 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 TestDescriptor Modifier and Type Method Description TestDescriptorJupiterTestEngine. 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 TestDescriptor Modifier and Type Class Description (package private) classAbstractExtensionContext<T extends TestDescriptor>Subinterfaces of TestDescriptor in org.junit.jupiter.engine.descriptor Modifier and Type Interface Description (package private) interfaceResourceLockAwareFields in org.junit.jupiter.engine.descriptor declared as TestDescriptor Modifier and Type Field Description private TestDescriptorTemplateExecutor. parentprivate TAbstractExtensionContext. testDescriptorFields in org.junit.jupiter.engine.descriptor with type parameters of type TestDescriptor Modifier and Type Field Description private java.util.List<TestDescriptor>ClassTemplateTestDescriptor. childrenPrototypesprivate java.util.Map<java.lang.Integer,java.util.Collection<? extends TestDescriptor>>ClassTemplateTestDescriptor. childrenPrototypesByIndexMethods in org.junit.jupiter.engine.descriptor that return TestDescriptor Modifier and Type Method Description (package private) TestDescriptorClassTemplateTestDescriptor.ClassTemplateExecutor. createInvocationTestDescriptor(UniqueId uniqueId, org.junit.jupiter.api.extension.ClassTemplateInvocationContext invocationContext, int index)(package private) abstract TestDescriptorTemplateExecutor. createInvocationTestDescriptor(UniqueId uniqueId, C invocationContext, int index)(package private) TestDescriptorTestTemplateTestDescriptor.TestTemplateExecutor. createInvocationTestDescriptor(UniqueId uniqueId, org.junit.jupiter.api.extension.TestTemplateInvocationContext invocationContext, int index)Methods in org.junit.jupiter.engine.descriptor that return types with arguments of type TestDescriptor Modifier and Type Method Description private java.util.stream.Stream<? extends TestDescriptor>ClassTemplateTestDescriptor.ClassTemplateExecutor. collectChildren(int index, UniqueId invocationUniqueId)private java.util.Optional<TestDescriptor>TemplateExecutor. createInvocationTestDescriptor(C invocationContext, int index)Methods in org.junit.jupiter.engine.descriptor with parameters of type TestDescriptor Modifier and Type Method Description private voidTemplateExecutor. execute(Node.DynamicTestExecutor dynamicTestExecutor, TestDescriptor testDescriptor)static java.util.List<java.lang.Class<?>>NestedClassTestDescriptor. getEnclosingTestClasses(TestDescriptor parent)voidTestFactoryTestDescriptor. 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 theTestWatcherAPI is not supported for@TestFactorycontainers.voidTestMethodTestDescriptor. nodeFinished(JupiterEngineExecutionContext context, TestDescriptor descriptor, TestExecutionResult result)InvoketestSuccessful(),testAborted(), ortestFailed()on each registeredTestWatcheraccording to the status of the suppliedTestExecutionResult, in reverse registration order.voidMethodBasedTestDescriptor. nodeSkipped(JupiterEngineExecutionContext context, TestDescriptor descriptor, Node.SkipResult result)InvokeTestWatcher.testDisabled(ExtensionContext, Optional)on each registeredTestWatcher, in registration order.voidTestFactoryTestDescriptor. 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 theTestWatcherAPI is not supported for@TestFactorycontainers. -
Uses of TestDescriptor in org.junit.jupiter.engine.discovery
Fields in org.junit.jupiter.engine.discovery declared as TestDescriptor Modifier and Type Field Description private TestDescriptorAbstractAnnotatedDescriptorWrapper. testDescriptorFields in org.junit.jupiter.engine.discovery with type parameters of type TestDescriptor Modifier and Type Field Description private java.util.function.UnaryOperator<java.util.List<TestDescriptor>>MethodOrderingVisitor. methodsBeforeNestedClassesOrdererMethods in org.junit.jupiter.engine.discovery with type parameters of type TestDescriptor Modifier and Type Method Description protected <PARENT extends TestDescriptor>
voidAbstractOrderingVisitor. doWithMatchingDescriptor(java.lang.Class<PARENT> parentTestDescriptorType, TestDescriptor testDescriptor, java.util.function.Consumer<PARENT> action, java.util.function.Function<PARENT,java.lang.String> errorMessageBuilder)protected <CHILD extends TestDescriptor,WRAPPER extends AbstractAnnotatedDescriptorWrapper<?>>
voidAbstractOrderingVisitor. orderChildrenTestDescriptors(TestDescriptor parentTestDescriptor, java.lang.Class<CHILD> matchingChildrenType, java.util.Optional<java.util.function.Consumer<CHILD>> validationAction, java.util.function.Function<CHILD,WRAPPER> descriptorWrapperFactory, AbstractOrderingVisitor.DescriptorWrapperOrderer<?,WRAPPER> descriptorWrapperOrderer)Methods in org.junit.jupiter.engine.discovery that return TestDescriptor Modifier and Type Method Description TestDescriptorMethodSelectorResolver.MethodType.TestDescriptorFactory. create(UniqueId uniqueId, java.lang.Class<?> testClass, java.lang.reflect.Method method, java.util.function.Supplier<java.util.List<java.lang.Class<?>>> enclosingInstanceTypes, JupiterConfiguration configuration)private TestDescriptorMethodSelectorResolver.MethodType. createTestDescriptor(TestDescriptor parent, java.lang.Class<?> testClass, java.lang.reflect.Method method, JupiterConfiguration configuration)(package private) TestDescriptorAbstractAnnotatedDescriptorWrapper. getTestDescriptor()Methods in org.junit.jupiter.engine.discovery that return types with arguments of type TestDescriptor Modifier and Type Method Description private static java.util.function.UnaryOperator<java.util.List<TestDescriptor>>MethodOrderingVisitor. createMethodsBeforeNestedClassesOrderer()(package private) java.util.Optional<TestDescriptor>MethodSelectorResolver.MethodType. resolve(java.util.List<java.lang.Class<?>> enclosingClasses, java.lang.Class<?> testClass, java.lang.reflect.Method method, SelectorResolver.Context context, JupiterConfiguration configuration)(package private) java.util.Optional<TestDescriptor>MethodSelectorResolver.MethodType. resolveUniqueIdIntoTestDescriptor(UniqueId uniqueId, SelectorResolver.Context context, JupiterConfiguration configuration)Methods in org.junit.jupiter.engine.discovery with parameters of type TestDescriptor Modifier and Type Method Description private TestDescriptorMethodSelectorResolver.MethodType. createTestDescriptor(TestDescriptor parent, java.lang.Class<?> testClass, java.lang.reflect.Method method, JupiterConfiguration configuration)private UniqueIdMethodSelectorResolver.MethodType. createUniqueId(java.lang.reflect.Method method, TestDescriptor parent, java.lang.Class<?> testClass)protected <PARENT extends TestDescriptor>
voidAbstractOrderingVisitor. doWithMatchingDescriptor(java.lang.Class<PARENT> parentTestDescriptorType, TestDescriptor testDescriptor, java.util.function.Consumer<PARENT> action, java.util.function.Function<PARENT,java.lang.String> errorMessageBuilder)private java.util.function.Supplier<java.util.Set<? extends DiscoverySelector>>ClassSelectorResolver. expansionCallback(TestDescriptor testDescriptor, java.util.function.Supplier<java.util.List<java.lang.Class<?>>> testClassesSupplier)private java.util.function.Supplier<java.util.Set<? extends DiscoverySelector>>MethodSelectorResolver. expansionCallback(TestDescriptor testDescriptor)private ClassTemplateTestDescriptorClassSelectorResolver. newClassTemplateTestDescriptor(TestDescriptor parent, java.lang.Class<?> testClass)private ClassTemplateTestDescriptorClassSelectorResolver. newClassTemplateTestDescriptor(TestDescriptor parent, java.lang.String segmentType, ClassBasedTestDescriptor delegate)private ClassTestDescriptorClassSelectorResolver. newClassTestDescriptor(TestDescriptor parent, java.lang.Class<?> testClass)private ClassTemplateInvocationTestDescriptorClassSelectorResolver. newDummyClassTemplateInvocationTestDescriptor(TestDescriptor parent, int index)private ClassBasedTestDescriptorClassSelectorResolver. newMemberClassTestDescriptor(TestDescriptor parent, java.lang.Class<?> testClass)private ClassTemplateTestDescriptorClassSelectorResolver. newNestedClassTemplateTestDescriptor(TestDescriptor parent, java.lang.Class<?> testClass)private NestedClassTestDescriptorClassSelectorResolver. newNestedClassTestDescriptor(TestDescriptor parent, java.lang.Class<?> testClass)private ClassBasedTestDescriptorClassSelectorResolver. newStandaloneClassTestDescriptor(TestDescriptor parent, java.lang.Class<?> testClass)protected <CHILD extends TestDescriptor,WRAPPER extends AbstractAnnotatedDescriptorWrapper<?>>
voidAbstractOrderingVisitor. orderChildrenTestDescriptors(TestDescriptor parentTestDescriptor, java.lang.Class<CHILD> matchingChildrenType, java.util.Optional<java.util.function.Consumer<CHILD>> validationAction, java.util.function.Function<CHILD,WRAPPER> descriptorWrapperFactory, AbstractOrderingVisitor.DescriptorWrapperOrderer<?,WRAPPER> descriptorWrapperOrderer)private voidAbstractOrderingVisitor. reportWarning(TestDescriptor parentTestDescriptor, java.lang.String message)voidClassOrderingVisitor. visit(TestDescriptor testDescriptor)voidMethodOrderingVisitor. visit(TestDescriptor testDescriptor)Method parameters in org.junit.jupiter.engine.discovery with type arguments of type TestDescriptor Modifier and Type Method Description private SelectorResolver.ResolutionMethodSelectorResolver. resolve(SelectorResolver.Context context, java.util.List<java.lang.Class<?>> enclosingClasses, java.lang.Class<?> testClass, java.util.function.Supplier<java.lang.reflect.Method> methodSupplier, java.util.function.BiFunction<TestDescriptor,java.util.function.Supplier<java.util.Set<? extends DiscoverySelector>>,SelectorResolver.Match> matchFactory)private SelectorResolver.ResolutionClassSelectorResolver. resolveNestedClassUniqueId(SelectorResolver.Context context, UniqueId uniqueId, java.util.function.Predicate<? super java.lang.Class<?>> condition, java.util.function.BiFunction<TestDescriptor,java.lang.Class<?>,ClassBasedTestDescriptor> factory)private SelectorResolver.ResolutionClassSelectorResolver. resolveStandaloneClassUniqueId(SelectorResolver.Context context, UniqueId.Segment lastSegment, java.util.function.Predicate<? super java.lang.Class<?>> condition, java.util.function.BiFunction<TestDescriptor,java.lang.Class<?>,ClassBasedTestDescriptor> factory)Constructors in org.junit.jupiter.engine.discovery with parameters of type TestDescriptor Constructor Description AbstractAnnotatedDescriptorWrapper(TestDescriptor testDescriptor, E annotatedElement) -
Uses of TestDescriptor in org.junit.platform.engine
Fields in org.junit.platform.engine declared as TestDescriptor Modifier and Type Field Description private TestDescriptorExecutionRequest. rootTestDescriptorMethods 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(){@return the root {@link TestDescriptor} 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 java.util.Optional<? extends TestDescriptor>TestDescriptor. findByUniqueId(UniqueId uniqueId)Find the descriptor with the supplied unique ID.default java.util.Set<? extends TestDescriptor>TestDescriptor. getAncestors()Get the immutable set of all ancestors of this descriptor.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.static ExecutionRequestExecutionRequest. create(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters)Deprecated.without replacementstatic ExecutionRequestExecutionRequest. create(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters, OutputDirectoryCreator outputDirectoryCreator, NamespacedHierarchicalStore<Namespace> requestLevelStore)Factory for creating an execution request.java.nio.file.PathOutputDirectoryCreator. createOutputDirectory(TestDescriptor testDescriptor)Create an output directory for the supplied test descriptor.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.default voidEngineExecutionListener. fileEntryPublished(TestDescriptor testDescriptor, FileEntry fileEntry)Can be called for anyTestDescriptorin order to publish a file or directory by attaching it to a test or container — for example: Screenshots Logs Output files written by the code under test Test output directoryvoidTestDescriptor. removeChild(TestDescriptor descriptor)Remove a child from this descriptor.default voidEngineExecutionListener. reportingEntryPublished(TestDescriptor testDescriptor, ReportEntry reportEntry)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.voidCompositeTestDescriptorVisitor. visit(TestDescriptor descriptor)voidTestDescriptor.Visitor. visit(TestDescriptor descriptor)Visit aTestDescriptor.Method parameters in org.junit.platform.engine with type arguments of type TestDescriptor Modifier and Type Method Description default voidTestDescriptor. orderChildren(java.util.function.UnaryOperator<java.util.List<TestDescriptor>> orderer)Order the children of this descriptor.Constructors in org.junit.platform.engine with parameters of type TestDescriptor Constructor Description ExecutionRequest(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters)Deprecated.without replacement because it's an internal API.ExecutionRequest(TestDescriptor rootTestDescriptor, EngineExecutionListener engineExecutionListener, ConfigurationParameters configurationParameters, OutputDirectoryCreator outputDirectoryCreator, NamespacedHierarchicalStore<Namespace> requestLevelStore) -
Uses of TestDescriptor in org.junit.platform.engine.reporting
Methods in org.junit.platform.engine.reporting with parameters of type TestDescriptor Modifier and Type Method Description java.nio.file.PathOutputDirectoryProviderAdapter. createOutputDirectory(TestDescriptor testDescriptor) -
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 declared as TestDescriptor Modifier and Type Field Description private TestDescriptorAbstractTestDescriptor. parentFields 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)Method parameters in org.junit.platform.engine.support.descriptor with type arguments of type TestDescriptor Modifier and Type Method Description voidAbstractTestDescriptor. orderChildren(java.util.function.UnaryOperator<java.util.List<TestDescriptor>> orderer)Order the children of this descriptor. -
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.private static classEngineDiscoveryRequestResolver.DefaultInitializationContext<T extends TestDescriptor>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.Fields in org.junit.platform.engine.support.discovery declared as TestDescriptor Modifier and Type Field Description private TestDescriptorEngineDiscoveryRequestResolution. engineDescriptorprivate TEngineDiscoveryRequestResolver.DefaultInitializationContext. engineDescriptorprivate TestDescriptorEngineDiscoveryRequestResolution.DefaultContext. parentprivate TestDescriptorSelectorResolver.Match. testDescriptorMethods 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>EngineDiscoveryRequestResolution.DefaultContext. addToParent(java.util.function.Function<TestDescriptor,java.util.Optional<T>> creator)<T extends TestDescriptor>
java.util.Optional<T>EngineDiscoveryRequestResolution.DefaultContext. addToParent(java.util.function.Supplier<DiscoverySelector> parentSelectorSupplier, java.util.function.Function<TestDescriptor,java.util.Optional<T>> creator)<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.private <T extends TestDescriptor>
java.util.Optional<T>EngineDiscoveryRequestResolution.DefaultContext. createAndAdd(TestDescriptor parent, java.util.function.Function<TestDescriptor,java.util.Optional<T>> creator)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>EngineDiscoveryRequestResolution.DefaultContext. resolve(DiscoverySelector selector)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 private <T extends TestDescriptor>
java.util.Optional<T>EngineDiscoveryRequestResolution.DefaultContext. createAndAdd(TestDescriptor parent, java.util.function.Function<TestDescriptor,java.util.Optional<T>> creator)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>EngineDiscoveryRequestResolution.DefaultContext. addToParent(java.util.function.Function<TestDescriptor,java.util.Optional<T>> creator)<T extends TestDescriptor>
java.util.Optional<T>EngineDiscoveryRequestResolution.DefaultContext. addToParent(java.util.function.Supplier<DiscoverySelector> parentSelectorSupplier, java.util.function.Function<TestDescriptor,java.util.Optional<T>> creator)<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.private <T extends TestDescriptor>
java.util.Optional<T>EngineDiscoveryRequestResolution.DefaultContext. createAndAdd(TestDescriptor parent, java.util.function.Function<TestDescriptor,java.util.Optional<T>> creator)Constructors in org.junit.platform.engine.support.discovery with parameters of type TestDescriptor Constructor Description DefaultContext(TestDescriptor parent)EngineDiscoveryRequestResolution(EngineDiscoveryRequest request, TestDescriptor engineDescriptor, java.util.List<SelectorResolver> resolvers, java.util.List<TestDescriptor.Visitor> visitors)Match(TestDescriptor testDescriptor, java.util.function.Supplier<java.util.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 TestDescriptor Modifier and Type Field Description private TestDescriptorNodeTestTask. testDescriptorFields in org.junit.platform.engine.support.hierarchical with type parameters of type TestDescriptor Modifier and Type Field Description private java.util.Map<TestDescriptor,Node.ExecutionMode>NodeExecutionAdvisor. forcedDescendantExecutionModeByTestDescriptorprivate java.util.Map<TestDescriptor,ResourceLock>NodeExecutionAdvisor. resourceLocksByTestDescriptorMethods in org.junit.platform.engine.support.hierarchical with parameters of type TestDescriptor Modifier and Type Method Description (package private) static <C extends EngineExecutionContext>
Node<C>NodeUtils. asNode(TestDescriptor testDescriptor)private voidNodeTreeWalker. doForChildrenRecursively(TestDescriptor parent, java.util.function.Consumer<TestDescriptor> consumer)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.voidNodeTestTask.DefaultDynamicTestExecutor. execute(TestDescriptor testDescriptor)java.util.concurrent.Future<?>NodeTestTask.DefaultDynamicTestExecutor. execute(TestDescriptor testDescriptor, EngineExecutionListener executionListener)(package private) voidNodeExecutionAdvisor. forceDescendantExecutionMode(TestDescriptor testDescriptor, Node.ExecutionMode executionMode)private voidNodeTreeWalker. forceDescendantExecutionModeRecursively(NodeExecutionAdvisor advisor, TestDescriptor testDescriptor)private java.util.Set<ExclusiveResource>NodeTreeWalker. getExclusiveResources(TestDescriptor testDescriptor)(package private) java.util.Optional<Node.ExecutionMode>NodeExecutionAdvisor. getForcedExecutionMode(TestDescriptor testDescriptor)(package private) ResourceLockNodeExecutionAdvisor. getResourceLock(TestDescriptor testDescriptor)private java.util.Optional<Node.ExecutionMode>NodeExecutionAdvisor. lookupExecutionModeForcedByAncestor(TestDescriptor testDescriptor)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.(package private) voidNodeExecutionAdvisor. removeResourceLock(TestDescriptor testDescriptor)(package private) voidNodeExecutionAdvisor. useResourceLock(TestDescriptor testDescriptor, ResourceLock resourceLock)(package private) NodeExecutionAdvisorNodeTreeWalker. walk(TestDescriptor rootDescriptor)private voidNodeTreeWalker. walk(TestDescriptor globalLockDescriptor, TestDescriptor testDescriptor, NodeExecutionAdvisor advisor)Method parameters in org.junit.platform.engine.support.hierarchical with type arguments of type TestDescriptor Modifier and Type Method Description private voidNodeTreeWalker. doForChildrenRecursively(TestDescriptor parent, java.util.function.Consumer<TestDescriptor> consumer)Constructors in org.junit.platform.engine.support.hierarchical with parameters of type TestDescriptor Constructor Description NodeTestTask(NodeTestTaskContext taskContext, TestDescriptor testDescriptor)NodeTestTask(NodeTestTaskContext taskContext, TestDescriptor testDescriptor, java.lang.Runnable finalizer) -
Uses of TestDescriptor in org.junit.platform.launcher
Methods in org.junit.platform.launcher with parameters of type TestDescriptor Modifier and Type Method Description FilterResultExcludeMethodFilter. apply(TestDescriptor descriptor)FilterResultIncludeMethodFilter. apply(TestDescriptor descriptor)static TestIdentifierTestIdentifier. from(TestDescriptor testDescriptor)Factory for creating a newTestIdentifierfrom aTestDescriptor.protected java.lang.StringAbstractMethodFilter. getFullyQualifiedMethodNameFromDescriptor(TestDescriptor descriptor)Method parameters in org.junit.platform.launcher with type arguments of type TestDescriptor Modifier and Type Method Description static TestPlanTestPlan. from(boolean containsTests, java.util.Collection<TestDescriptor> engineDescriptors, ConfigurationParameters configurationParameters, OutputDirectoryCreator outputDirectoryCreator)Construct a newTestPlanfrom the supplied collection ofTestDescriptors. -
Uses of TestDescriptor in org.junit.platform.launcher.core
Fields in org.junit.platform.launcher.core declared as TestDescriptor Modifier and Type Field Description private TestDescriptorOutcomeDelayingEngineExecutionListener. engineDescriptorprivate TestDescriptorLauncherDiscoveryResult.EngineResultInfo. rootDescriptorMethods in org.junit.platform.launcher.core that return TestDescriptor Modifier and Type Method Description TestDescriptorLauncherDiscoveryResult. getEngineTestDescriptor(TestEngine testEngine)(package private) TestDescriptorLauncherDiscoveryResult.EngineResultInfo. getRootDescriptor()Methods in org.junit.platform.launcher.core that return types with arguments of type TestDescriptor Modifier and Type Method Description (package private) java.util.Collection<TestDescriptor>LauncherDiscoveryResult. getEngineTestDescriptors()Methods in org.junit.platform.launcher.core with parameters of type TestDescriptor Modifier and Type Method Description (package private) static LauncherDiscoveryResult.EngineResultInfoLauncherDiscoveryResult.EngineResultInfo. completed(TestDescriptor rootDescriptor, DiscoveryIssueNotifier discoveryIssueNotifier)java.nio.file.PathHierarchicalOutputDirectoryCreator. createOutputDirectory(TestDescriptor testDescriptor)voidCompositeEngineExecutionListener. dynamicTestRegistered(TestDescriptor testDescriptor)voidDelegatingEngineExecutionListener. dynamicTestRegistered(TestDescriptor testDescriptor)voidExecutionListenerAdapter. dynamicTestRegistered(TestDescriptor testDescriptor)(package private) static LauncherDiscoveryResult.EngineResultInfoLauncherDiscoveryResult.EngineResultInfo. errored(TestDescriptor rootDescriptor, DiscoveryIssueNotifier discoveryIssueNotifier, java.lang.Throwable cause)private voidEngineExecutionOrchestrator. executeEngine(TestDescriptor engineDescriptor, EngineExecutionListener listener, ConfigurationParameters configurationParameters, TestEngine testEngine, OutputDirectoryCreator outputDirectoryCreator, DiscoveryIssueNotifier discoveryIssueNotifier, NamespacedHierarchicalStore<Namespace> requestLevelStore)voidCompositeEngineExecutionListener. executionFinished(TestDescriptor testDescriptor, TestExecutionResult testExecutionResult)voidDelegatingEngineExecutionListener. executionFinished(TestDescriptor testDescriptor, TestExecutionResult testExecutionResult)voidExecutionListenerAdapter. executionFinished(TestDescriptor testDescriptor, TestExecutionResult testExecutionResult)voidOutcomeDelayingEngineExecutionListener. executionFinished(TestDescriptor testDescriptor, TestExecutionResult executionResult)voidStackTracePruningEngineExecutionListener. executionFinished(TestDescriptor testDescriptor, TestExecutionResult testExecutionResult)voidCompositeEngineExecutionListener. executionSkipped(TestDescriptor testDescriptor, java.lang.String reason)voidDelegatingEngineExecutionListener. executionSkipped(TestDescriptor testDescriptor, java.lang.String reason)voidExecutionListenerAdapter. executionSkipped(TestDescriptor testDescriptor, java.lang.String reason)voidOutcomeDelayingEngineExecutionListener. executionSkipped(TestDescriptor testDescriptor, java.lang.String reason)voidCompositeEngineExecutionListener. executionStarted(TestDescriptor testDescriptor)voidDelegatingEngineExecutionListener. executionStarted(TestDescriptor testDescriptor)voidExecutionListenerAdapter. executionStarted(TestDescriptor testDescriptor)voidOutcomeDelayingEngineExecutionListener. executionStarted(TestDescriptor testDescriptor)voidCompositeEngineExecutionListener. fileEntryPublished(TestDescriptor testDescriptor, FileEntry file)voidDelegatingEngineExecutionListener. fileEntryPublished(TestDescriptor testDescriptor, FileEntry file)voidExecutionListenerAdapter. fileEntryPublished(TestDescriptor testDescriptor, FileEntry file)private java.util.Optional<java.lang.String>EngineDiscoveryResultValidator. getCyclicGraphInfo(TestDescriptor root)private static java.util.List<java.lang.String>StackTracePruningEngineExecutionListener. getTestClassNames(TestDescriptor testDescriptor)private TestIdentifierExecutionListenerAdapter. getTestIdentifier(TestDescriptor testDescriptor)private booleanEngineDiscoveryOrchestrator. isExcluded(TestDescriptor descriptor, FilterResult filterResult)private voidEngineDiscoveryOrchestrator. populateExclusionReasonInMap(java.util.Optional<java.lang.String> reason, TestDescriptor testDescriptor, java.util.Map<java.lang.String,java.util.List<TestDescriptor>> excludedTestDescriptorsByReason)voidCompositeEngineExecutionListener. reportingEntryPublished(TestDescriptor testDescriptor, ReportEntry entry)voidDelegatingEngineExecutionListener. reportingEntryPublished(TestDescriptor testDescriptor, ReportEntry entry)voidExecutionListenerAdapter. reportingEntryPublished(TestDescriptor testDescriptor, ReportEntry entry)(package private) voidEngineDiscoveryResultValidator. validate(TestEngine testEngine, TestDescriptor root)Perform common validation checks.Method parameters in org.junit.platform.launcher.core with type arguments of type TestDescriptor Modifier and Type Method Description private voidEngineDiscoveryOrchestrator. logTestDescriptorExclusionReasons(java.util.Map<java.lang.String,java.util.List<TestDescriptor>> excludedTestDescriptorsByReason)private voidEngineDiscoveryOrchestrator. populateExclusionReasonInMap(java.util.Optional<java.lang.String> reason, TestDescriptor testDescriptor, java.util.Map<java.lang.String,java.util.List<TestDescriptor>> excludedTestDescriptorsByReason)private java.util.Map<TestEngine,LauncherDiscoveryResult.EngineResultInfo>LauncherDiscoveryResult. retainEngines(java.util.function.Predicate<? super TestDescriptor> predicate)LauncherDiscoveryResultLauncherDiscoveryResult. withRetainedEngines(java.util.function.Predicate<? super TestDescriptor> predicate)Constructors in org.junit.platform.launcher.core with parameters of type TestDescriptor Constructor Description EngineResultInfo(TestDescriptor rootDescriptor, DiscoveryIssueNotifier discoveryIssueNotifier, java.lang.Throwable cause)OutcomeDelayingEngineExecutionListener(EngineExecutionListener delegate, TestDescriptor engineDescriptor) -
Uses of TestDescriptor in org.junit.platform.testkit.engine
Fields in org.junit.platform.testkit.engine declared as TestDescriptor Modifier and Type Field Description private TestDescriptorEngineDiscoveryResults. engineDescriptorprivate TestDescriptorEvent. testDescriptorprivate TestDescriptorExecution. testDescriptorMethods in org.junit.platform.testkit.engine that return TestDescriptor Modifier and Type Method Description TestDescriptorEngineDiscoveryResults. getEngineDescriptor(){@return the root {@link TestDescriptor} of the engine}TestDescriptorEvent. getTestDescriptor()Get theTestDescriptorassociated with thisEvent.TestDescriptorExecution. getTestDescriptor()Get theTestDescriptorfor thisExecution.Methods in org.junit.platform.testkit.engine with parameters of type TestDescriptor Modifier and Type Method Description java.nio.file.PathEngineTestKit.Builder.DisabledOutputDirectoryCreator. createOutputDirectory(TestDescriptor testDescriptor)static EventEvent. dynamicTestRegistered(TestDescriptor testDescriptor)Create anEventfor the dynamic registration of the suppliedTestDescriptor.voidExecutionRecorder. dynamicTestRegistered(TestDescriptor testDescriptor)Record anEventfor a dynamically registered container or test.static EventEvent. executionFinished(TestDescriptor testDescriptor, TestExecutionResult result)voidExecutionRecorder. executionFinished(TestDescriptor testDescriptor, TestExecutionResult testExecutionResult)Record anEventfor a container or test that completed with the providedTestExecutionResult.static EventEvent. executionSkipped(TestDescriptor testDescriptor, java.lang.String reason)voidExecutionRecorder. executionSkipped(TestDescriptor testDescriptor, java.lang.String reason)Record anEventfor a container or test that was skipped.static EventEvent. executionStarted(TestDescriptor testDescriptor)Create a startedEventfor the suppliedTestDescriptor.voidExecutionRecorder. executionStarted(TestDescriptor testDescriptor)Record anEventfor a container or test that started.static EventEvent. fileEntryPublished(TestDescriptor testDescriptor, FileEntry file)voidExecutionRecorder. fileEntryPublished(TestDescriptor testDescriptor, FileEntry file)static ExecutionExecution. finished(TestDescriptor testDescriptor, java.time.Instant startInstant, java.time.Instant endInstant, TestExecutionResult executionResult)Create a new instance of anExecutionthat finished with the providedTestExecutionResult.static EventEvent. reportingEntryPublished(TestDescriptor testDescriptor, ReportEntry entry)voidExecutionRecorder. reportingEntryPublished(TestDescriptor testDescriptor, ReportEntry entry)Record anEventfor a publishedReportEntry.static ExecutionExecution. skipped(TestDescriptor testDescriptor, java.time.Instant startInstant, java.time.Instant endInstant, java.lang.String skipReason)Create a new instance of anExecutionthat was skipped with the providedskipReason.Method parameters in org.junit.platform.testkit.engine with type arguments of type TestDescriptor Modifier and Type Method Description static java.util.function.Predicate<Event>Event. byTestDescriptor(java.util.function.Predicate<? super TestDescriptor> testDescriptorPredicate)private static java.util.stream.Stream<Event>EngineExecutionResults. filterEvents(java.util.List<Event> events, java.util.function.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 TestDescriptor Constructor Description EngineDiscoveryResults(TestDescriptor engineDescriptor, java.util.List<DiscoveryIssue> discoveryIssues)Event(EventType type, TestDescriptor testDescriptor, java.lang.Object payload)Construct anEventwith the supplied arguments.Execution(TestDescriptor testDescriptor, java.time.Instant startInstant, java.time.Instant endInstant, TerminationInfo terminationInfo) -
Uses of TestDescriptor in org.junit.vintage.engine
Methods in org.junit.vintage.engine that return TestDescriptor Modifier and Type Method Description TestDescriptorVintageTestEngine. 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 classRunnerTestDescriptorclassVintageEngineDescriptorclassVintageTestDescriptorMethods in org.junit.vintage.engine.descriptor that return types with arguments of type TestDescriptor Modifier and Type Method Description java.util.Set<TestDescriptor>VintageEngineDescriptor. getModifiableChildren() -
Uses of TestDescriptor in org.junit.vintage.engine.discovery
Fields in org.junit.vintage.engine.discovery with type parameters of type TestDescriptor Modifier and Type Field Description private static EngineDiscoveryRequestResolver<TestDescriptor>VintageDiscoverer. resolverMethods in org.junit.vintage.engine.discovery with parameters of type TestDescriptor Modifier and Type Method Description private java.util.Optional<RunnerTestDescriptor>MethodSelectorResolver. addFilter(TestDescriptor parent, java.util.function.Function<RunnerTestDescriptor,org.junit.runner.manipulation.Filter> filterCreator)private RunnerTestDescriptorClassSelectorResolver. createRunnerTestDescriptor(TestDescriptor parent, java.lang.Class<?> testClass, org.junit.runner.Runner runner)Method parameters in org.junit.vintage.engine.discovery with type arguments of type TestDescriptor Modifier and Type Method Description private java.util.Set<org.junit.runner.Description>UniqueIdFilter. determineDescendants(java.util.Optional<? extends TestDescriptor> identifiedTestDescriptor)private java.util.Deque<org.junit.runner.Description>UniqueIdFilter. determinePath(RunnerTestDescriptor runnerTestDescriptor, java.util.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 TestDescriptor Modifier and Type Field Description private java.util.Map<TestDescriptor,java.util.List<TestExecutionResult>>TestRun. executionResultsprivate java.util.Set<TestDescriptor>TestRun. finishedDescriptorsprivate java.util.Map<TestDescriptor,EventType>TestRun. inProgressDescriptorsprivate java.util.Set<TestDescriptor>TestRun. runnerDescendantsprivate java.util.Set<TestDescriptor>TestRun. skippedDescriptorsprivate java.util.Set<TestDescriptor>TestRun. startedDescriptorsMethods in org.junit.vintage.engine.execution that return TestDescriptor Modifier and Type Method Description private TestDescriptorRunListenerAdapter. findParent(org.junit.runner.Description description, java.util.function.Function<org.junit.runner.Description,java.util.Optional<VintageTestDescriptor>> lookup)private TestDescriptorRunListenerAdapter. lookupOrRegisterCurrentTestDescriptor(org.junit.runner.Description description)private TestDescriptorRunListenerAdapter. lookupOrRegisterNextTestDescriptor(org.junit.runner.Description description)private TestDescriptorRunListenerAdapter. lookupOrRegisterTestDescriptor(org.junit.runner.Description description, java.util.function.Function<org.junit.runner.Description,java.util.Optional<VintageTestDescriptor>> lookup)Methods in org.junit.vintage.engine.execution that return types with arguments of type TestDescriptor Modifier and Type Method Description (package private) java.util.Collection<TestDescriptor>TestRun. getInProgressTestDescriptorsWithSyntheticStartEvents()Methods in org.junit.vintage.engine.execution with parameters of type TestDescriptor Modifier and Type Method Description private booleanRunListenerAdapter. canFinish(TestDescriptor testDescriptor)private booleanRunListenerAdapter. canStart(TestDescriptor testDescriptor)private java.util.Optional<java.lang.String>RunListenerAdapter. determineReasonForIgnoredTest(TestDescriptor testDescriptor, org.junit.runner.Description description)private voidRunListenerAdapter. dynamicTestRegistered(TestDescriptor testDescriptor)private voidRunListenerAdapter. fireExecutionFinished(TestDescriptor testDescriptor)private voidRunListenerAdapter. fireExecutionFinishedForInProgressNonAncestorTestDescriptorsWithSyntheticStartEvents(TestDescriptor testDescriptor)private voidRunListenerAdapter. fireExecutionSkipped(TestDescriptor testDescriptor, java.lang.String reason)private voidRunListenerAdapter. fireExecutionStarted(TestDescriptor testDescriptor, EventType eventType)(package private) TestExecutionResultTestRun. getStoredResultOrSuccessful(TestDescriptor testDescriptor)private voidRunListenerAdapter. handleFailure(org.junit.runner.notification.Failure failure, java.util.function.Function<java.lang.Throwable,TestExecutionResult> resultCreator, TestDescriptor testDescriptor)(package private) booleanTestRun. hasSyntheticStartEvent(TestDescriptor testDescriptor)private booleanRunListenerAdapter. isAncestor(TestDescriptor candidate, TestDescriptor testDescriptor)(package private) booleanTestRun. isDescendantOfRunnerTestDescriptor(TestDescriptor testDescriptor)(package private) booleanTestRun. isFinished(TestDescriptor testDescriptor)(package private) booleanTestRun. isFinishedOrSkipped(TestDescriptor testDescriptor)(package private) booleanTestRun. isNotFinished(TestDescriptor testDescriptor)(package private) booleanTestRun. isNotSkipped(TestDescriptor testDescriptor)(package private) booleanTestRun. isNotStarted(TestDescriptor testDescriptor)(package private) booleanTestRun. isSkipped(TestDescriptor testDescriptor)(package private) voidTestRun. markFinished(TestDescriptor testDescriptor)(package private) voidTestRun. markSkipped(TestDescriptor testDescriptor)(package private) voidTestRun. markStarted(TestDescriptor testDescriptor, EventType eventType)private voidRunListenerAdapter. reportContainerFinished(TestDescriptor containerTestDescriptor)(package private) voidTestRun. storeResult(TestDescriptor testDescriptor, TestExecutionResult result)private voidRunListenerAdapter. testFinished(TestDescriptor descriptor)private voidRunListenerAdapter. testIgnored(TestDescriptor testDescriptor, java.lang.String reason)private voidRunListenerAdapter. testStarted(TestDescriptor testDescriptor, EventType eventType)Method parameters in org.junit.vintage.engine.execution with type arguments of type TestDescriptor Modifier and Type Method Description (package private) booleanTestRun. areAllFinishedOrSkipped(java.util.Set<? extends TestDescriptor> testDescriptors)private voidRunListenerAdapter. fireExecutionStartedIncludingUnstartedAncestors(java.util.Optional<TestDescriptor> parent)
-