@API(value=Internal) public abstract class JupiterTestDescriptor extends AbstractTestDescriptor implements Node<JupiterEngineExecutionContext>
Node.DynamicTestExecutor, Node.SkipResult
TestDescriptor.Type, TestDescriptor.Visitor
Modifier and Type | Method and Description |
---|---|
protected static <E extends AnnotatedElement> |
determineDisplayName(E element,
Function<E,String> defaultDisplayNameGenerator) |
protected void |
executeAndMaskThrowable(Executable executable)
Execute the supplied
Executable and
mask any
exception thrown as an unchecked exception. |
protected static Set<TestTag> |
getTags(AnnotatedElement element) |
boolean |
isLeaf()
Determine if this
Node is a leaf in the hierarchy. |
protected ExtensionRegistry |
populateNewExtensionRegistryFromExtendWith(AnnotatedElement annotatedElement,
ExtensionRegistry existingExtensionRegistry) |
protected Node.SkipResult |
shouldContainerBeSkipped(JupiterEngineExecutionContext context) |
protected Node.SkipResult |
shouldTestBeSkipped(JupiterEngineExecutionContext context) |
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, setSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
after, before, execute, execute, prepare, shouldBeSkipped
accept, getDescendants, getLegacyReportingName, getType, hasTests, isContainer, isRoot, isTest, prune, pruneTree
protected static Set<TestTag> getTags(AnnotatedElement element)
protected static <E extends AnnotatedElement> String determineDisplayName(E element, Function<E,String> defaultDisplayNameGenerator)
public boolean isLeaf()
Node
Node
is a leaf in the hierarchy.
The default implementation returns false
.
isLeaf
in interface Node<JupiterEngineExecutionContext>
protected Node.SkipResult shouldContainerBeSkipped(JupiterEngineExecutionContext context)
protected Node.SkipResult shouldTestBeSkipped(JupiterEngineExecutionContext context)
protected ExtensionRegistry populateNewExtensionRegistryFromExtendWith(AnnotatedElement annotatedElement, ExtensionRegistry existingExtensionRegistry)
protected void executeAndMaskThrowable(Executable executable)
Executable
and
mask any
exception thrown as an unchecked exception.executable
- the Executable
to executeExceptionUtils.throwAsUncheckedException(Throwable)