Module org.junit.vintage.engine
Class VintageTestDescriptor
java.lang.Object
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
org.junit.vintage.engine.descriptor.VintageTestDescriptor
- All Implemented Interfaces:
TestDescriptor
- Direct Known Subclasses:
RunnerTestDescriptor
@API(status=INTERNAL,
since="4.12")
public class VintageTestDescriptor
extends AbstractTestDescriptor
- Since:
- 4.12
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.platform.engine.TestDescriptor
TestDescriptor.Type, TestDescriptor.Visitor
-
Field Summary
Modifier and TypeFieldDescriptionprotected Description
static final String
static final String
static final String
static final String
Fields inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
children
-
Constructor Summary
ConstructorDescriptionVintageTestDescriptor
(UniqueId uniqueId, Description description, TestSource source) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
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.getTags()
Get the set of tags associated with this descriptor.getType()
Determine theTestDescriptor.Type
of this descriptor.void
Remove this non-root descriptor from its parent and remove all the children from this descriptor.protected boolean
tryToExcludeFromRunner
(Description description) Methods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, setParent, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.junit.platform.engine.TestDescriptor
accept, 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
-
-
Constructor Details
-
VintageTestDescriptor
-
-
Method Details
-
getDescription
-
getLegacyReportingName
Description copied from interface:TestDescriptor
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.The default implementation delegates to
TestDescriptor.getDisplayName()
.- Returns:
- the legacy reporting name; never
null
or blank
-
getType
Description copied from interface:TestDescriptor
Determine theTestDescriptor.Type
of this descriptor.- Returns:
- the descriptor type; never
null
. - See Also:
-
getTags
Description copied from interface:TestDescriptor
Get the set of tags associated with this descriptor.- Specified by:
getTags
in interfaceTestDescriptor
- Overrides:
getTags
in classAbstractTestDescriptor
- Returns:
- the set of tags associated with this descriptor; never
null
but potentially empty - See Also:
-
removeFromHierarchy
public void removeFromHierarchy()Description copied from interface:TestDescriptor
Remove this non-root descriptor from its parent and remove all the children from this descriptor.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.- Specified by:
removeFromHierarchy
in interfaceTestDescriptor
- Overrides:
removeFromHierarchy
in classAbstractTestDescriptor
-
canBeRemovedFromHierarchy
protected boolean canBeRemovedFromHierarchy() -
tryToExcludeFromRunner
-