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
@API(status=INTERNAL, since="4.12") public class RunnerTestDescriptor extends VintageTestDescriptor
- 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_TEST
-
Fields inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
children
-
-
Constructor Summary
Constructors Constructor Description RunnerTestDescriptor(UniqueId uniqueId, Class<?> testClass, Runner runner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyFilters(Consumer<RunnerTestDescriptor> childrenCreator)
protected boolean
canBeRemovedFromHierarchy()
void
clearFilters()
Optional<List<Filter>>
getFilters()
void
prune()
Remove this descriptor from the hierarchy unless it is a root or contains tests.Request
toRequest()
protected boolean
tryToExcludeFromRunner(Description description)
-
Methods inherited from class org.junit.vintage.engine.descriptor.VintageTestDescriptor
getDescription, getLegacyReportingName, getTags, getType, removeFromHierarchy
-
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
-
-
-
-
Method Detail
-
toRequest
public Request toRequest()
-
tryToExcludeFromRunner
protected boolean tryToExcludeFromRunner(Description description)
- Overrides:
tryToExcludeFromRunner
in classVintageTestDescriptor
-
canBeRemovedFromHierarchy
protected boolean canBeRemovedFromHierarchy()
- Overrides:
canBeRemovedFromHierarchy
in classVintageTestDescriptor
-
prune
public void prune()
Description copied from interface:TestDescriptor
Remove this descriptor from the hierarchy unless it is a root or contains tests.A concrete
TestEngine
may override this method in order to implement a different algorithm or to skip pruning altogether.
-
clearFilters
public void clearFilters()
-
applyFilters
public void applyFilters(Consumer<RunnerTestDescriptor> childrenCreator)
-
-