@API(status=INTERNAL,
since="5.0")
public abstract class JupiterTestDescriptor
extends AbstractTestDescriptor
implements Node<JupiterEngineExecutionContext>
Node.DynamicTestExecutor, Node.ExecutionMode, Node.Invocation<C extends EngineExecutionContext>, Node.SkipResultTestDescriptor.Type, TestDescriptor.Visitor| Modifier and Type | Field and Description |
|---|---|
protected JupiterConfiguration |
configuration |
childrenaddChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitafter, around, before, execute, getExclusiveResources, nodeFinished, nodeSkippedaccept, containsTests, getDescendants, getLegacyReportingName, getType, isContainer, isRoot, isTest, mayRegisterTests, pruneprotected final JupiterConfiguration configuration
protected static Set<TestTag> getTags(AnnotatedElement element)
public final Node.ExecutionMode getExecutionMode()
NodeThe default implementation returns Node.ExecutionMode.CONCURRENT.
getExecutionMode in interface Node<JupiterEngineExecutionContext>nullNode.ExecutionModeprotected Optional<Node.ExecutionMode> getExplicitExecutionMode()
protected Optional<Node.ExecutionMode> getDefaultChildExecutionMode()
protected Optional<Node.ExecutionMode> getExecutionModeFromAnnotation(AnnotatedElement element)
public static Node.ExecutionMode toExecutionMode(ExecutionMode mode)
protected Set<ExclusiveResource> getExclusiveResourcesFromAnnotation(AnnotatedElement element)
public Node.SkipResult shouldBeSkipped(JupiterEngineExecutionContext context) throws Exception
Nodecontext should be
skipped.
The default implementation returns Node.SkipResult.doNotSkip().
shouldBeSkipped in interface Node<JupiterEngineExecutionContext>Exceptionpublic abstract JupiterEngineExecutionContext prepare(JupiterEngineExecutionContext context) throws Exception
prepare in interface Node<JupiterEngineExecutionContext>ExceptionNode.cleanUp(EngineExecutionContext)public void cleanUp(JupiterEngineExecutionContext context) throws Exception
Nodecontext after execution.
The default implementation does nothing.
cleanUp in interface Node<JupiterEngineExecutionContext>context - the context to execute inExceptionNode.prepare(EngineExecutionContext)protected void executeAndMaskThrowable(Executable executable)
Executable and
mask any
exception thrown as an unchecked exception.executable - the Executable to executeExceptionUtils.throwAsUncheckedException(Throwable)Copyright © 2024. All rights reserved.