Node<JupiterEngineExecutionContext>, TestDescriptorClassBasedTestDescriptor, MethodBasedTestDescriptor@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.Visitorchildren| Modifier and Type | Method | Description |
|---|---|---|
void |
cleanUp(JupiterEngineExecutionContext context) |
Clean up the supplied
context after execution. |
Node.ExecutionMode |
getExecutionMode() |
Get the preferred of execution mode for
parallel execution of this node.
|
abstract JupiterEngineExecutionContext |
prepare(JupiterEngineExecutionContext context) |
Must be overridden and return a new context so cleanUp() does not accidentally close the parent context.
|
Node.SkipResult |
shouldBeSkipped(JupiterEngineExecutionContext context) |
Determine if the execution of the supplied
context should be
skipped. |
static Node.ExecutionMode |
toExecutionMode(ExecutionMode mode) |
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toStringafter, around, before, execute, getExclusiveResources, nodeFinished, nodeSkippedclone, finalize, getClass, notify, notifyAll, wait, wait, waitaccept, containsTests, getDescendants, getLegacyReportingName, getType, isContainer, isRoot, isTest, mayRegisterTests, prunepublic Node.ExecutionMode getExecutionMode()
NodeThe default implementation returns Node.ExecutionMode.CONCURRENT.
getExecutionMode in interface Node<JupiterEngineExecutionContext>nullNode.ExecutionModepublic static Node.ExecutionMode toExecutionMode(ExecutionMode mode)
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)Copyright © 2019. All rights reserved.