Class ClassTestDescriptor
java.lang.Object
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
org.antublue.test.engine.internal.descriptor.ClassTestDescriptor
- All Implemented Interfaces:
org.junit.platform.engine.TestDescriptor
public final class ClassTestDescriptor
extends org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
Class to implement a class test descriptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.platform.engine.TestDescriptor
org.junit.platform.engine.TestDescriptor.Type, org.junit.platform.engine.TestDescriptor.Visitor -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final booleanConstant to determine we are being executed via the Maven Test Engine pluginprotected static final LockAnnotationUtilsLockAnnotationUtilsprotected static final Class<?>[]Constant to represent no class argumentsprotected static final Object[]Constant to represent no object argumentsprotected static final ReflectionUtilsReflectionUtilsFields inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
children -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(ExecutorContext executorContext) Method to execute the test descriptor<T> List<T>getChildren(Class<T> clazz) Method to get a List of children cast as a specific ClassOptional<org.junit.platform.engine.TestSource>Method to get the TestSourceClass<?>Method to get the test classorg.junit.platform.engine.TestDescriptor.TypegetType()Method to get the test descriptor TypebooleanMethod to return whether the test descriptor is a containerbooleanisTest()Method to return whether the test descriptor is a testprotected voidprintStackTrace(PrintStream printStream, Throwable throwable) Method to print a stacktrace depending on whether we have been executed via the Maven Test Engine pluginvoidskip(ExecutorContext executorContext) Method to skip the TestDescriptor's children, then the TestDescriptor (recursively)Methods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.junit.platform.engine.TestDescriptor
accept, getAncestors, getDescendants, getLegacyReportingName, isRoot, mayRegisterTests, prune
-
Field Details
-
REFLECTION_UTILS
ReflectionUtils -
LOCK_ANNOTATION_UTILS
LockAnnotationUtils -
NO_CLASS_ARGS
Constant to represent no class arguments -
NO_OBJECT_ARGS
Constant to represent no object arguments -
EXECUTED_VIA_ANTUBLUE_TEST_ENGINE_MAVEN_PLUGIN
protected static final boolean EXECUTED_VIA_ANTUBLUE_TEST_ENGINE_MAVEN_PLUGINConstant to determine we are being executed via the Maven Test Engine plugin
-
-
Method Details
-
getSource
Method to get the TestSource- Specified by:
getSourcein interfaceorg.junit.platform.engine.TestDescriptor- Overrides:
getSourcein classorg.junit.platform.engine.support.descriptor.AbstractTestDescriptor- Returns:
- the return value
-
getType
public org.junit.platform.engine.TestDescriptor.Type getType()Method to get the test descriptor Type- Returns:
- the return value
-
isTest
public boolean isTest()Method to return whether the test descriptor is a test- Returns:
- the return value
-
isContainer
public boolean isContainer()Method to return whether the test descriptor is a container- Returns:
- the return value
-
getTestClass
Method to get the test class- Returns:
- the return value
-
execute
Method to execute the test descriptor- Parameters:
executorContext- executorContext
-
getChildren
Method to get a List of children cast as a specific Class- Type Parameters:
T- the return type- Parameters:
clazz- clazz- Returns:
- the return value
-
skip
Method to skip the TestDescriptor's children, then the TestDescriptor (recursively)- Parameters:
executorContext- testEngineExecutorContext
-
printStackTrace
Method to print a stacktrace depending on whether we have been executed via the Maven Test Engine plugin- Parameters:
printStream- printStreamthrowable- throwable
-