Class JupiterTestDescriptor
- java.lang.Object
-
- org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
- org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
-
- All Implemented Interfaces:
org.junit.platform.engine.support.hierarchical.Node<JupiterEngineExecutionContext>
,org.junit.platform.engine.TestDescriptor
- Direct Known Subclasses:
ClassBasedTestDescriptor
,MethodBasedTestDescriptor
@API(status=INTERNAL, since="5.0") public abstract class JupiterTestDescriptor extends org.junit.platform.engine.support.descriptor.AbstractTestDescriptor implements org.junit.platform.engine.support.hierarchical.Node<JupiterEngineExecutionContext>
- Since:
- 5.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.junit.platform.engine.support.hierarchical.Node
org.junit.platform.engine.support.hierarchical.Node.DynamicTestExecutor, org.junit.platform.engine.support.hierarchical.Node.ExecutionMode, org.junit.platform.engine.support.hierarchical.Node.Invocation<C extends org.junit.platform.engine.support.hierarchical.EngineExecutionContext>, org.junit.platform.engine.support.hierarchical.Node.SkipResult
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
cleanUp(JupiterEngineExecutionContext context)
org.junit.platform.engine.support.hierarchical.Node.ExecutionMode
getExecutionMode()
abstract JupiterEngineExecutionContext
prepare(JupiterEngineExecutionContext context)
Must be overridden and return a new context so cleanUp() does not accidentally close the parent context.org.junit.platform.engine.support.hierarchical.Node.SkipResult
shouldBeSkipped(JupiterEngineExecutionContext context)
static org.junit.platform.engine.support.hierarchical.Node.ExecutionMode
toExecutionMode(org.junit.jupiter.api.parallel.ExecutionMode mode)
-
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
-
-
-
-
Method Detail
-
getExecutionMode
public org.junit.platform.engine.support.hierarchical.Node.ExecutionMode getExecutionMode()
- Specified by:
getExecutionMode
in interfaceorg.junit.platform.engine.support.hierarchical.Node<JupiterEngineExecutionContext>
-
toExecutionMode
public static org.junit.platform.engine.support.hierarchical.Node.ExecutionMode toExecutionMode(org.junit.jupiter.api.parallel.ExecutionMode mode)
-
shouldBeSkipped
public org.junit.platform.engine.support.hierarchical.Node.SkipResult shouldBeSkipped(JupiterEngineExecutionContext context) throws java.lang.Exception
- Specified by:
shouldBeSkipped
in interfaceorg.junit.platform.engine.support.hierarchical.Node<JupiterEngineExecutionContext>
- Throws:
java.lang.Exception
-
prepare
public abstract JupiterEngineExecutionContext prepare(JupiterEngineExecutionContext context) throws java.lang.Exception
Must be overridden and return a new context so cleanUp() does not accidentally close the parent context.- Specified by:
prepare
in interfaceorg.junit.platform.engine.support.hierarchical.Node<JupiterEngineExecutionContext>
- Throws:
java.lang.Exception
-
cleanUp
public void cleanUp(JupiterEngineExecutionContext context) throws java.lang.Exception
- Specified by:
cleanUp
in interfaceorg.junit.platform.engine.support.hierarchical.Node<JupiterEngineExecutionContext>
- Throws:
java.lang.Exception
-
-