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:
org.junit.platform.engine.TestDescriptor
- Since:
- 4.12
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classNested 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 TypeFieldDescriptionprivate List<org.junit.runner.manipulation.Filter> private final booleanprivate static final org.junit.platform.commons.logging.Loggerprivate final Set<org.junit.runner.Description> private org.junit.runner.Runnerprivate booleanFields inherited from class 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
ConstructorsConstructorDescriptionRunnerTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, Class<?> testClass, org.junit.runner.Runner runner, boolean ignored) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyFilters(Consumer<RunnerTestDescriptor> childrenCreator) protected booleanvoidprivate org.junit.runner.Runnerbooleanprivate voidvoidprune()voidsetExecutorService(ExecutorService executorService) org.junit.runner.Requestprotected booleantryToExcludeFromRunner(org.junit.runner.Description description) private booleantryToFilterRunner(org.junit.runner.Description description) private voidMethods inherited from class VintageTestDescriptor
getDescription, getTags, getType, pruneDescriptorsForObsoleteDescriptions, removeFromHierarchyMethods 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 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
public RunnerTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, Class<?> testClass, org.junit.runner.Runner runner, boolean ignored)
-
-
Method Details
-
getLegacyReportingName
- Specified by:
getLegacyReportingNamein interfaceorg.junit.platform.engine.TestDescriptor- Overrides:
getLegacyReportingNamein classVintageTestDescriptor
-
toRequest
public org.junit.runner.Request toRequest() -
tryToExcludeFromRunner
protected boolean tryToExcludeFromRunner(org.junit.runner.Description description) - Overrides:
tryToExcludeFromRunnerin classVintageTestDescriptor
-
tryToFilterRunner
private boolean tryToFilterRunner(org.junit.runner.Description description) -
canBeRemovedFromHierarchy
protected boolean canBeRemovedFromHierarchy()- Overrides:
canBeRemovedFromHierarchyin classVintageTestDescriptor
-
prune
public void prune() -
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() -
setExecutorService
-