@API(status=INTERNAL,
since="5.0")
public abstract class MethodBasedTestDescriptor
extends JupiterTestDescriptor
TestDescriptors based on Java methods.Node.DynamicTestExecutor, Node.ExecutionMode, Node.Invocation<C extends EngineExecutionContext>, Node.SkipResultTestDescriptor.Type, TestDescriptor.Visitorconfigurationchildren| Modifier and Type | Method and Description |
|---|---|
Set<ExclusiveResource> |
getExclusiveResources()
Get the set of exclusive resources
required to execute this node.
|
protected Optional<Node.ExecutionMode> |
getExplicitExecutionMode() |
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.
|
Set<TestTag> |
getTags()
Get the set of tags associated with this descriptor.
|
Class<?> |
getTestClass() |
Method |
getTestMethod() |
cleanUp, executeAndMaskThrowable, getDefaultChildExecutionMode, getExclusiveResourcesFromAnnotation, getExecutionMode, getExecutionModeFromAnnotation, getTags, prepare, shouldBeSkipped, toExecutionModeaddChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitafter, around, before, execute, nodeFinished, nodeSkippedaccept, containsTests, getDescendants, getType, isContainer, isRoot, isTest, mayRegisterTests, prunepublic final Set<TestTag> getTags()
TestDescriptorgetTags in interface TestDescriptorgetTags in class AbstractTestDescriptornull
but potentially emptyTestTagpublic Set<ExclusiveResource> getExclusiveResources()
NodeThe default implementation returns an empty set.
null but potentially emptyExclusiveResourceprotected Optional<Node.ExecutionMode> getExplicitExecutionMode()
getExplicitExecutionMode in class JupiterTestDescriptorpublic final Class<?> getTestClass()
public final Method getTestMethod()
public String getLegacyReportingName()
TestDescriptorThe default implementation simply delegates to TestDescriptor.getDisplayName().
null or blankCopyright © 2024. All rights reserved.