@API(status=INTERNAL, since="4.12") public class VintageTestDescriptor extends AbstractTestDescriptor
TestDescriptor.Type, TestDescriptor.Visitor
Modifier and Type | Field and Description |
---|---|
static String |
ENGINE_ID |
static String |
SEGMENT_TYPE_DYNAMIC |
static String |
SEGMENT_TYPE_RUNNER |
static String |
SEGMENT_TYPE_TEST |
children
Constructor and Description |
---|
VintageTestDescriptor(UniqueId uniqueId,
org.junit.runner.Description description) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canBeRemovedFromHierarchy() |
org.junit.runner.Description |
getDescription() |
String |
getLegacyReportingName()
Get the name of this descriptor in a format that is suitable for legacy
reporting infrastructure — for example, for reporting systems built
on the Ant-based XML reporting format for JUnit 4.
|
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, isContainer, isRoot, isTest, mayRegisterTests, prune
public static final String ENGINE_ID
public static final String SEGMENT_TYPE_RUNNER
public static final String SEGMENT_TYPE_TEST
public static final String SEGMENT_TYPE_DYNAMIC
public VintageTestDescriptor(UniqueId uniqueId, org.junit.runner.Description description)
public org.junit.runner.Description getDescription()
public String getLegacyReportingName()
TestDescriptor
The default implementation simply delegates to TestDescriptor.getDisplayName()
.
null
or blankpublic TestDescriptor.Type getType()
TestDescriptor
TestDescriptor.Type
of this descriptor.null
.TestDescriptor.isContainer()
,
TestDescriptor.isTest()
public 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)
Copyright © 2019. All rights reserved.