Class VintageTestDescriptor
java.lang.Object
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
org.junit.vintage.engine.descriptor.VintageTestDescriptor
- All Implemented Interfaces:
org.junit.platform.engine.TestDescriptor
- Direct Known Subclasses:
RunnerTestDescriptor
@API(status=INTERNAL,
since="4.12")
public class VintageTestDescriptor
extends org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- Since:
- 4.12
-
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 org.junit.runner.Descriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
children -
Constructor Summary
ConstructorsConstructorDescriptionVintageTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, org.junit.runner.Description description, String displayName, org.junit.platform.engine.TestSource source) VintageTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, org.junit.runner.Description description, org.junit.platform.engine.TestSource source) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddCategoriesAsTags(Set<org.junit.platform.engine.TestTag> tags) private voidaddTagsFromParent(Set<org.junit.platform.engine.TestTag> tags) protected booleanprivate static StringgenerateDisplayName(org.junit.runner.Description description) org.junit.runner.DescriptionSet<org.junit.platform.engine.TestTag> getTags()org.junit.platform.engine.TestDescriptor.TypegetType()(package private) voidpruneDescriptorsForObsoleteDescriptions(List<org.junit.runner.Description> newSiblingDescriptions) voidprotected booleantryToExcludeFromRunner(org.junit.runner.Description description) Methods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, orderChildren, removeChild, 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, isContainer, isRoot, isTest, mayRegisterTests, prune
-
Field Details
-
ENGINE_ID
- See Also:
-
SEGMENT_TYPE_RUNNER
- See Also:
-
SEGMENT_TYPE_TEST
- See Also:
-
SEGMENT_TYPE_DYNAMIC
- See Also:
-
description
protected org.junit.runner.Description description
-
-
Constructor Details
-
VintageTestDescriptor
public VintageTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, org.junit.runner.Description description, org.junit.platform.engine.TestSource source) -
VintageTestDescriptor
VintageTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, org.junit.runner.Description description, String displayName, org.junit.platform.engine.TestSource source)
-
-
Method Details
-
generateDisplayName
-
getDescription
public org.junit.runner.Description getDescription() -
getLegacyReportingName
-
getType
public org.junit.platform.engine.TestDescriptor.Type getType() -
getTags
- Specified by:
getTagsin interfaceorg.junit.platform.engine.TestDescriptor- Overrides:
getTagsin classorg.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
removeFromHierarchy
public void removeFromHierarchy()- Specified by:
removeFromHierarchyin interfaceorg.junit.platform.engine.TestDescriptor- Overrides:
removeFromHierarchyin classorg.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
canBeRemovedFromHierarchy
protected boolean canBeRemovedFromHierarchy() -
tryToExcludeFromRunner
protected boolean tryToExcludeFromRunner(org.junit.runner.Description description) -
pruneDescriptorsForObsoleteDescriptions
void pruneDescriptorsForObsoleteDescriptions(List<org.junit.runner.Description> newSiblingDescriptions) -
addTagsFromParent
-
addCategoriesAsTags
-