TestDescriptor
RunnerTestDescriptor
@API(status=INTERNAL, since="4.12") public class VintageTestDescriptor extends AbstractTestDescriptor
TestDescriptor.Type, TestDescriptor.Visitor
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
ENGINE_ID |
|
static java.lang.String |
SEGMENT_TYPE_DYNAMIC |
|
static java.lang.String |
SEGMENT_TYPE_RUNNER |
|
static java.lang.String |
SEGMENT_TYPE_TEST |
children
Constructor | Description |
---|---|
VintageTestDescriptor(UniqueId uniqueId,
org.junit.runner.Description description) |
Modifier and Type | Method | Description |
---|---|---|
protected boolean |
canBeRemovedFromHierarchy() |
|
org.junit.runner.Description |
getDescription() |
|
java.util.Set<TestTag> |
getTags() |
Get the set of tags associated with this descriptor.
|
TestDescriptor.Type |
getType() |
Determine the
TestDescriptor.Type of this descriptor. |
void |
removeFromHierarchy() |
Remove this non-root descriptor from its parent and remove all the
children from this descriptor.
|
protected boolean |
tryToExcludeFromRunner(org.junit.runner.Description description) |
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, setParent, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accept, containsTests, getDescendants, getLegacyReportingName, isContainer, isRoot, isTest, mayRegisterTests, prune
public static final java.lang.String ENGINE_ID
public static final java.lang.String SEGMENT_TYPE_RUNNER
public static final java.lang.String SEGMENT_TYPE_TEST
public static final java.lang.String SEGMENT_TYPE_DYNAMIC
public VintageTestDescriptor(UniqueId uniqueId, org.junit.runner.Description description)
public org.junit.runner.Description getDescription()
public TestDescriptor.Type getType()
TestDescriptor
TestDescriptor.Type
of this descriptor.null
.TestDescriptor.isContainer()
,
TestDescriptor.isTest()
public java.util.Set<TestTag> getTags()
TestDescriptor
getTags
in interface TestDescriptor
getTags
in class AbstractTestDescriptor
null
but potentially emptyTestTag
public void removeFromHierarchy()
TestDescriptor
If this method is invoked on a root descriptor,
this method must throw a JUnitException
explaining that a root cannot be removed from the
hierarchy.
removeFromHierarchy
in interface TestDescriptor
removeFromHierarchy
in class AbstractTestDescriptor
protected boolean canBeRemovedFromHierarchy()
protected boolean tryToExcludeFromRunner(org.junit.runner.Description description)