@API(status=INTERNAL,
since="4.12")
public class VintageTestDescriptor
extends AbstractTestDescriptor
TestDescriptor.Type, TestDescriptor.Visitor| Modifier and Type | Field and Description |
|---|---|
private org.junit.runner.Description |
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 and Description |
|---|
VintageTestDescriptor(UniqueId uniqueId,
org.junit.runner.Description description) |
VintageTestDescriptor(UniqueId uniqueId,
org.junit.runner.Description description,
java.lang.String displayName,
TestSource source) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addCategoriesAsTags(java.util.Set<TestTag> tags) |
private void |
addTagsFromParent(java.util.Set<TestTag> tags) |
private static java.lang.String |
generateDisplayName(org.junit.runner.Description description) |
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. |
private static MethodSource |
toMethodSource(java.lang.Class<?> testClass,
java.lang.String methodName) |
private static TestSource |
toTestSource(org.junit.runner.Description description) |
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaccept, containsTests, getDescendants, getLegacyReportingName, isContainer, isRoot, isTest, mayRegisterTests, prunepublic 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
private final org.junit.runner.Description description
public VintageTestDescriptor(UniqueId uniqueId, org.junit.runner.Description description)
VintageTestDescriptor(UniqueId uniqueId, org.junit.runner.Description description, java.lang.String displayName, TestSource source)
private static java.lang.String generateDisplayName(org.junit.runner.Description description)
public org.junit.runner.Description getDescription()
public TestDescriptor.Type getType()
TestDescriptorTestDescriptor.Type of this descriptor.null.TestDescriptor.isContainer(),
TestDescriptor.isTest()public java.util.Set<TestTag> getTags()
TestDescriptorgetTags in interface TestDescriptorgetTags in class AbstractTestDescriptornull
but potentially emptyTestTagprivate void addTagsFromParent(java.util.Set<TestTag> tags)
private void addCategoriesAsTags(java.util.Set<TestTag> tags)
private static TestSource toTestSource(org.junit.runner.Description description)
private static MethodSource toMethodSource(java.lang.Class<?> testClass, java.lang.String methodName)