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 ClassesModifier and TypeClassDescriptionprivate static class
Nested classes/interfaces inherited from interface org.junit.platform.engine.TestDescriptor
TestDescriptor.Type, TestDescriptor.Visitor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List
<org.junit.runner.manipulation.Filter> private final boolean
private static final org.junit.platform.commons.logging.Logger
private final Set
<org.junit.runner.Description> private org.junit.runner.Runner
private boolean
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
ConstructorsConstructorDescriptionRunnerTestDescriptor
(UniqueId uniqueId, Class<?> testClass, org.junit.runner.Runner runner, boolean ignored) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyFilters
(Consumer<RunnerTestDescriptor> childrenCreator) protected boolean
void
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.private org.junit.runner.Runner
boolean
private void
void
prune()
Remove this descriptor from the hierarchy unless it is a root or contains tests.org.junit.runner.Request
protected boolean
tryToExcludeFromRunner
(org.junit.runner.Description description) private boolean
tryToFilterRunner
(org.junit.runner.Description description) private void
Methods inherited from class org.junit.vintage.engine.descriptor.VintageTestDescriptor
getDescription, getTags, getType, pruneDescriptorsForObsoleteDescriptions, 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, getAncestors, getDescendants, isContainer, isRoot, isTest, mayRegisterTests
-
Field Details
-
logger
private static final org.junit.platform.commons.logging.Logger logger -
rejectedExclusions
-
runner
private org.junit.runner.Runner runner -
ignored
private final boolean ignored -
wasFiltered
private boolean wasFiltered -
filters
-
-
Constructor Details
-
RunnerTestDescriptor
-
-
Method Details
-
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()
.- Specified by:
getLegacyReportingName
in interfaceTestDescriptor
- Overrides:
getLegacyReportingName
in classVintageTestDescriptor
- Returns:
- the legacy reporting name; never
null
or blank
-
toRequest
public org.junit.runner.Request toRequest() -
tryToExcludeFromRunner
protected boolean tryToExcludeFromRunner(org.junit.runner.Description description) - Overrides:
tryToExcludeFromRunner
in classVintageTestDescriptor
-
tryToFilterRunner
private boolean tryToFilterRunner(org.junit.runner.Description description) -
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.- See Also:
-
logIncompleteFiltering
private void logIncompleteFiltering() -
warnAboutUnfilterableRunner
private void warnAboutUnfilterableRunner() -
getFilters
-
clearFilters
public void clearFilters() -
applyFilters
-
getRunnerToReport
private org.junit.runner.Runner getRunnerToReport() -
isIgnored
public boolean isIgnored()
-