Module org.junit.jupiter.engine
Class ClassTestDescriptor
java.lang.Object
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
org.junit.jupiter.engine.descriptor.ClassTestDescriptor
- All Implemented Interfaces:
Node<JupiterEngineExecutionContext>,TestDescriptor
@API(status=INTERNAL,
since="5.0")
public class ClassTestDescriptor
extends ClassBasedTestDescriptor
TestDescriptor for tests based on Java classes.
Default Display Names
The default display name for a top-level or nested static test class is the fully qualified name of the class with the package name and leading dot (".") removed.
- Since:
- 5.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.platform.engine.support.hierarchical.Node
Node.DynamicTestExecutor, Node.ExecutionMode, Node.Invocation<C extends EngineExecutionContext>, Node.SkipResultNested classes/interfaces inherited from interface org.junit.platform.engine.TestDescriptor
TestDescriptor.Type, TestDescriptor.Visitor -
Field Summary
FieldsFields inherited from class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
lifecycle, tagsFields inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
children -
Constructor Summary
ConstructorsConstructorDescriptionClassTestDescriptor(UniqueId uniqueId, Class<?> testClass, JupiterConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionGet the preferred of execution mode for parallel execution of this node.getTags()Get the set of tags associated with this descriptor.protected TestInstancesinstantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionRegistry registry, ExtensionRegistrar registrar, ExtensionContext extensionContext, ThrowableCollector throwableCollector) Methods inherited from class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
after, before, getDefaultChildExecutionMode, getExclusiveResources, getExplicitExecutionMode, getLegacyReportingName, getTestClass, getType, instantiateTestClass, prepare, setDefaultChildExecutionModeMethods inherited from class org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
cleanUp, shouldBeSkipped, toExecutionModeMethods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.junit.platform.engine.support.hierarchical.Node
around, execute, nodeFinished, nodeSkippedMethods inherited from interface org.junit.platform.engine.TestDescriptor
accept, getAncestors, getDescendants, isContainer, isRoot, isTest, mayRegisterTests, prune
-
Field Details
-
SEGMENT_TYPE
- See Also:
-
-
Constructor Details
-
ClassTestDescriptor
public ClassTestDescriptor(UniqueId uniqueId, Class<?> testClass, JupiterConfiguration configuration)
-
-
Method Details
-
getTags
Description copied from interface:TestDescriptorGet the set of tags associated with this descriptor.- Specified by:
getTagsin interfaceTestDescriptor- Overrides:
getTagsin classAbstractTestDescriptor- Returns:
- the set of tags associated with this descriptor; never
nullbut potentially empty - See Also:
-
getEnclosingTestClasses
- Specified by:
getEnclosingTestClassesin classClassBasedTestDescriptor
-
getExecutionMode
Description copied from interface:NodeGet the preferred of execution mode for parallel execution of this node.The default implementation returns
Node.ExecutionMode.CONCURRENT.- Specified by:
getExecutionModein interfaceNode<JupiterEngineExecutionContext>- Overrides:
getExecutionModein classJupiterTestDescriptor- Returns:
- the preferred execution mode of this node; never
null - See Also:
-
instantiateTestClass
protected TestInstances instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionRegistry registry, ExtensionRegistrar registrar, ExtensionContext extensionContext, ThrowableCollector throwableCollector) - Specified by:
instantiateTestClassin classClassBasedTestDescriptor
-