@API(status=INTERNAL, since="5.0") public abstract class MethodBasedTestDescriptor extends JupiterTestDescriptor
TestDescriptors
based on Java methods.JupiterTestDescriptor.ExceptionHandlerInvoker<E extends Extension>
Node.DynamicTestExecutor, Node.ExecutionMode, Node.Invocation<C extends EngineExecutionContext>, Node.SkipResult
TestDescriptor.Type, TestDescriptor.Visitor
Modifier and Type | Field and Description |
---|---|
private java.util.Set<TestTag> |
tags
Set of method-level tags; does not contain tags from parent.
|
private java.lang.Class<?> |
testClass |
private java.lang.reflect.Method |
testMethod |
configuration
children
Constructor and Description |
---|
MethodBasedTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method testMethod,
JupiterConfiguration configuration) |
MethodBasedTestDescriptor(UniqueId uniqueId,
java.lang.String displayName,
java.lang.Class<?> testClass,
java.lang.reflect.Method testMethod,
JupiterConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<ExclusiveResource> |
getExclusiveResources()
Get the set of exclusive resources
required to execute this node.
|
protected java.util.Optional<Node.ExecutionMode> |
getExplicitExecutionMode() |
java.lang.String |
getLegacyReportingName()
Get the name of this descriptor in a format that is suitable for legacy
reporting infrastructure — for example, for reporting systems built
on the Ant-based XML reporting format for JUnit 4.
|
java.util.Set<TestTag> |
getTags()
Get the set of tags associated with this descriptor.
|
java.lang.Class<?> |
getTestClass() |
java.lang.reflect.Method |
getTestMethod() |
cleanUp, getDefaultChildExecutionMode, getExclusiveResourcesFromAnnotation, getExecutionMode, getExecutionModeFromAnnotation, getTags, invokeExecutionExceptionHandlers, prepare, shouldBeSkipped, toExecutionMode
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
after, around, before, execute, nodeFinished, nodeSkipped
accept, containsTests, getDescendants, getType, isContainer, isRoot, isTest, mayRegisterTests, prune
private final java.lang.Class<?> testClass
private final java.lang.reflect.Method testMethod
private final java.util.Set<TestTag> tags
MethodBasedTestDescriptor(UniqueId uniqueId, java.lang.Class<?> testClass, java.lang.reflect.Method testMethod, JupiterConfiguration configuration)
MethodBasedTestDescriptor(UniqueId uniqueId, java.lang.String displayName, java.lang.Class<?> testClass, java.lang.reflect.Method testMethod, JupiterConfiguration configuration)
public final java.util.Set<TestTag> getTags()
TestDescriptor
getTags
in interface TestDescriptor
getTags
in class AbstractTestDescriptor
null
but potentially emptyTestTag
public java.util.Set<ExclusiveResource> getExclusiveResources()
Node
The default implementation returns an empty set.
null
but potentially emptyExclusiveResource
protected java.util.Optional<Node.ExecutionMode> getExplicitExecutionMode()
getExplicitExecutionMode
in class JupiterTestDescriptor
public final java.lang.Class<?> getTestClass()
public final java.lang.reflect.Method getTestMethod()
public java.lang.String getLegacyReportingName()
TestDescriptor
The default implementation simply delegates to TestDescriptor.getDisplayName()
.
null
or blank