TestDescriptorRunnerTestDescriptor@API(status=INTERNAL,
since="4.12")
public class VintageTestDescriptor
extends AbstractTestDescriptor
TestDescriptor.Type, TestDescriptor.Visitor| Modifier and Type | Field | Description |
|---|---|---|
protected org.junit.runner.Description |
description |
|
static String |
ENGINE_ID |
|
static String |
SEGMENT_TYPE_DYNAMIC |
|
static String |
SEGMENT_TYPE_RUNNER |
|
static 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() |
|
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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaccept, containsTests, getDescendants, isContainer, isRoot, isTest, mayRegisterTests, prunepublic 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
protected org.junit.runner.Description description
public VintageTestDescriptor(UniqueId uniqueId, org.junit.runner.Description description)
public org.junit.runner.Description getDescription()
public String getLegacyReportingName()
TestDescriptorThe default implementation simply delegates to TestDescriptor.getDisplayName().
null or blankpublic TestDescriptor.Type getType()
TestDescriptorTestDescriptor.Type of this descriptor.null.TestDescriptor.isContainer(),
TestDescriptor.isTest()public Set<TestTag> getTags()
TestDescriptorgetTags in interface TestDescriptorgetTags in class AbstractTestDescriptornull
but potentially emptyTestTagpublic void removeFromHierarchy()
TestDescriptorIf 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 TestDescriptorremoveFromHierarchy in class AbstractTestDescriptorprotected boolean canBeRemovedFromHierarchy()
protected boolean tryToExcludeFromRunner(org.junit.runner.Description description)
Copyright © 2019. All rights reserved.