Top Description Fields Constructors Methods
org.junit.jupiter.engine.descriptor

public Class ClassTestDescriptor

extends ClassBasedTestDescriptor
Class Inheritance
Annotations
@API
status:INTERNAL
since:5.0
Static Imports
java.util.Collections.emptyList, org.apiguardian.api.API.Status.INTERNAL, org.junit.jupiter.engine.descriptor.DisplayNameUtils.createDisplayNameSupplierForClass

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

Field Summary

Modifier and TypeField and Description
public static final String
Inherited from org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor:
classInfo

Constructor Summary

AccessConstructor and Description
public
ClassTestDescriptor(UniqueId uniqueId, Class<?> testClass, JupiterConfiguration configuration)

private
ClassTestDescriptor(UniqueId uniqueId, Class<?> testClass, String displayName, JupiterConfiguration configuration)

Method Summary

Modifier and TypeMethod and Description
public List<Class<?>>
public Node.ExecutionMode
public Function<ResourceLocksProvider, Set<ResourceLocksProvider.Lock>>
public Set<TestTag>
protected TestInstances
protected ClassTestDescriptor
withUniqueId(UnaryOperator<UniqueId> uniqueIdTransformer)

Implements abstract org.junit.jupiter.engine.descriptor.JupiterTestDescriptor.withUniqueId.

Returns shallow copy (without children) of this descriptor with the supplied unique ID.

Inherited from org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor:
afterbeforecleanUpgetDefaultChildExecutionModegetExclusiveResourceCollectorgetExplicitExecutionModegetLegacyReportingNamegetTestClassgetTypeinstantiateTestClasspreparesetDefaultChildExecutionModevalidatevalidateClassTemplateInvocationLifecycleMethodsvalidateCoreLifecycleMethods

Field Detail

SEGMENT_TYPEback to summary
public static final String SEGMENT_TYPE

Constructor Detail

ClassTestDescriptorback to summary
public ClassTestDescriptor(UniqueId uniqueId, Class<?> testClass, JupiterConfiguration configuration)
ClassTestDescriptorback to summary
private ClassTestDescriptor(UniqueId uniqueId, Class<?> testClass, String displayName, JupiterConfiguration configuration)

Method Detail

getEnclosingTestClassesback to summary
public List<Class<?>> getEnclosingTestClasses()

Implements org.junit.jupiter.engine.descriptor.TestClassAware.getEnclosingTestClasses.

Annotations
@Override
getExecutionModeback to summary
public Node.ExecutionMode getExecutionMode()

Overrides org.junit.jupiter.engine.descriptor.JupiterTestDescriptor.getExecutionMode.

Overrides default org.junit.platform.engine.support.hierarchical.Node.getExecutionMode.

Doc from org.junit.platform.engine.support.hierarchical.Node.getExecutionMode.

Get the preferred of execution mode for parallel execution of this node.

The default implementation returns ExecutionMode#CONCURRENT.

Annotations
@Override
getResourceLocksProviderEvaluatorback to summary
public Function<ResourceLocksProvider, Set<ResourceLocksProvider.Lock>> getResourceLocksProviderEvaluator()

Implements org.junit.jupiter.engine.descriptor.ResourceLockAware.getResourceLocksProviderEvaluator.

Annotations
@Override
getTagsback to summary
public Set<TestTag> getTags()

Overrides org.junit.platform.engine.support.descriptor.AbstractTestDescriptor.getTags.

Implements org.junit.platform.engine.TestDescriptor.getTags.

Doc from org.junit.platform.engine.TestDescriptor.getTags.

Get the set of tags associated with this descriptor.

Annotations
@Override
instantiateTestClassback to summary
protected TestInstances instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionContextSupplier extensionContext, ExtensionRegistry registry, JupiterEngineExecutionContext context)

Implements abstract org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.instantiateTestClass.

Annotations
@Override
withUniqueIdback to summary
protected ClassTestDescriptor withUniqueId(UnaryOperator<UniqueId> uniqueIdTransformer)

Implements abstract org.junit.jupiter.engine.descriptor.JupiterTestDescriptor.withUniqueId.

Doc from org.junit.jupiter.engine.descriptor.JupiterTestDescriptor.withUniqueId.

Returns shallow copy (without children) of this descriptor with the supplied unique ID.

Annotations
@Override