Module org.junit.jupiter.engine
Class JupiterEngineDescriptor
java.lang.Object
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
org.junit.platform.engine.support.descriptor.EngineDescriptor
org.junit.jupiter.engine.descriptor.JupiterEngineDescriptor
- All Implemented Interfaces:
Node<JupiterEngineExecutionContext>
,TestDescriptor
@API(status=INTERNAL,
since="5.0")
public class JupiterEngineDescriptor
extends EngineDescriptor
implements Node<JupiterEngineExecutionContext>
- Since:
- 5.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.platform.engine.support.hierarchical.Node
Node.DynamicTestExecutor, Node.ExecutionMode, Node.Invocation<C extends EngineExecutionContext>, Node.SkipResult
Nested classes/interfaces inherited from interface org.junit.platform.engine.TestDescriptor
TestDescriptor.Type, TestDescriptor.Visitor
-
Field Summary
Fields inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
children
-
Constructor Summary
ConstructorDescriptionJupiterEngineDescriptor
(UniqueId uniqueId, JupiterConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanUp
(JupiterEngineExecutionContext context) Clean up the suppliedcontext
after execution.Get the preferred of execution mode for parallel execution of this node.prepare
(JupiterEngineExecutionContext context) Prepare the suppliedcontext
prior to execution.Methods inherited from class org.junit.platform.engine.support.descriptor.EngineDescriptor
getType
Methods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.junit.platform.engine.support.hierarchical.Node
after, around, before, execute, getExclusiveResources, nodeFinished, nodeSkipped, shouldBeSkipped
Methods inherited from interface org.junit.platform.engine.TestDescriptor
accept, getAncestors, getDescendants, getLegacyReportingName, isContainer, isRoot, isTest, mayRegisterTests, prune
-
Field Details
-
ENGINE_ID
- See Also:
-
-
Constructor Details
-
JupiterEngineDescriptor
-
-
Method Details
-
getConfiguration
-
getExecutionMode
Description copied from interface:Node
Get the preferred of execution mode for parallel execution of this node.The default implementation returns
Node.ExecutionMode.CONCURRENT
.- Specified by:
getExecutionMode
in interfaceNode<JupiterEngineExecutionContext>
- Returns:
- the preferred execution mode of this node; never
null
- See Also:
-
prepare
Description copied from interface:Node
Prepare the suppliedcontext
prior to execution.The default implementation returns the supplied
context
unmodified.- Specified by:
prepare
in interfaceNode<JupiterEngineExecutionContext>
- See Also:
-
cleanUp
Description copied from interface:Node
Clean up the suppliedcontext
after execution.The default implementation does nothing.
- Specified by:
cleanUp
in interfaceNode<JupiterEngineExecutionContext>
- Parameters:
context
- the context to execute in- Throws:
Exception
- See Also:
-