@API(status=INTERNAL,
since="5.0")
public abstract class JupiterTestDescriptor
extends AbstractTestDescriptor
implements Node<JupiterEngineExecutionContext>
Node.DynamicTestExecutor, Node.SkipResultTestDescriptor.Type, TestDescriptor.Visitor| Modifier and Type | Field and Description |
|---|---|
private static ConditionEvaluator |
conditionEvaluator |
private static Logger |
logger |
children| Constructor and Description |
|---|
JupiterTestDescriptor(UniqueId uniqueId,
java.lang.String displayName,
TestSource source) |
| Modifier and Type | Method and Description |
|---|---|
protected static <E extends java.lang.reflect.AnnotatedElement> |
determineDisplayName(E element,
java.util.function.Function<E,java.lang.String> defaultDisplayNameGenerator) |
protected void |
executeAndMaskThrowable(Executable executable)
Execute the supplied
Executable and
mask any
exception thrown as an unchecked exception. |
protected static java.util.Set<TestTag> |
getTags(java.lang.reflect.AnnotatedElement element) |
protected ExtensionRegistry |
populateNewExtensionRegistryFromExtendWith(java.lang.reflect.AnnotatedElement annotatedElement,
ExtensionRegistry existingExtensionRegistry) |
Node.SkipResult |
shouldBeSkipped(JupiterEngineExecutionContext context)
Determine if the execution of the supplied
context should be
skipped. |
private Node.SkipResult |
toSkipResult(ConditionEvaluationResult evaluationResult) |
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitafter, before, execute, prepareaccept, containsTests, getDescendants, getLegacyReportingName, getType, isContainer, isRoot, isTest, mayRegisterTests, pruneprivate static final Logger logger
private static final ConditionEvaluator conditionEvaluator
JupiterTestDescriptor(UniqueId uniqueId, java.lang.String displayName, TestSource source)
protected static java.util.Set<TestTag> getTags(java.lang.reflect.AnnotatedElement element)
protected static <E extends java.lang.reflect.AnnotatedElement> java.lang.String determineDisplayName(E element,
java.util.function.Function<E,java.lang.String> defaultDisplayNameGenerator)
public Node.SkipResult shouldBeSkipped(JupiterEngineExecutionContext context) throws java.lang.Exception
Nodecontext should be
skipped.
The default implementation returns Node.SkipResult.doNotSkip().
shouldBeSkipped in interface Node<JupiterEngineExecutionContext>java.lang.Exceptionprivate Node.SkipResult toSkipResult(ConditionEvaluationResult evaluationResult)
protected ExtensionRegistry populateNewExtensionRegistryFromExtendWith(java.lang.reflect.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)