Module org.junit.vintage.engine
Class RunnerTestDescriptor
java.lang.Object
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
org.junit.vintage.engine.descriptor.VintageTestDescriptor
org.junit.vintage.engine.descriptor.RunnerTestDescriptor
- All Implemented Interfaces:
TestDescriptor
- Since:
- 4.12
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.platform.engine.TestDescriptor
TestDescriptor.Type, TestDescriptor.Visitor -
Field Summary
Fields inherited from class org.junit.vintage.engine.descriptor.VintageTestDescriptor
description, ENGINE_ID, SEGMENT_TYPE_DYNAMIC, SEGMENT_TYPE_RUNNER, SEGMENT_TYPE_TESTFields inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
children -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyFilters(Consumer<RunnerTestDescriptor> childrenCreator) protected booleanvoidGet 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.voidprune()Remove this descriptor from the hierarchy unless it is a root or contains tests.protected booleantryToExcludeFromRunner(Description description) Methods inherited from class org.junit.vintage.engine.descriptor.VintageTestDescriptor
getDescription, getTags, getType, removeFromHierarchyMethods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, 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, getDescendants, isContainer, isRoot, isTest, mayRegisterTests
-
Constructor Details
-
RunnerTestDescriptor
-
-
Method Details
-
getLegacyReportingName
Description copied from interface:TestDescriptorGet 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().- Specified by:
getLegacyReportingNamein interfaceTestDescriptor- Overrides:
getLegacyReportingNamein classVintageTestDescriptor- Returns:
- the legacy reporting name; never
nullor blank
-
toRequest
-
tryToExcludeFromRunner
- Overrides:
tryToExcludeFromRunnerin classVintageTestDescriptor
-
canBeRemovedFromHierarchy
protected boolean canBeRemovedFromHierarchy()- Overrides:
canBeRemovedFromHierarchyin classVintageTestDescriptor
-
prune
public void prune()Description copied from interface:TestDescriptorRemove this descriptor from the hierarchy unless it is a root or contains tests.A concrete
TestEnginemay override this method in order to implement a different algorithm or to skip pruning altogether. -
getFilters
-
clearFilters
public void clearFilters() -
applyFilters
-