TestDescriptor
@API(status=INTERNAL, since="4.12") public class RunnerTestDescriptor extends VintageTestDescriptor
TestDescriptor.Type, TestDescriptor.Visitor
children
description, ENGINE_ID, SEGMENT_TYPE_DYNAMIC, SEGMENT_TYPE_RUNNER, SEGMENT_TYPE_TEST
Constructor | Description |
---|---|
RunnerTestDescriptor(UniqueId uniqueId,
Class<?> testClass,
org.junit.runner.Runner runner) |
Modifier and Type | Method | Description |
---|---|---|
void |
applyFilters(Consumer<RunnerTestDescriptor> childrenCreator) |
|
protected boolean |
canBeRemovedFromHierarchy() |
|
void |
clearFilters() |
|
Optional<List<org.junit.runner.manipulation.Filter>> |
getFilters() |
|
void |
prune() |
Remove this descriptor from the hierarchy unless it is a root or contains
tests.
|
org.junit.runner.Request |
toRequest() |
|
protected boolean |
tryToExcludeFromRunner(org.junit.runner.Description description) |
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, setParent, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accept, containsTests, getDescendants, isContainer, isRoot, isTest, mayRegisterTests
getDescription, getLegacyReportingName, getTags, getType, removeFromHierarchy
public org.junit.runner.Request toRequest()
protected boolean tryToExcludeFromRunner(org.junit.runner.Description description)
tryToExcludeFromRunner
in class VintageTestDescriptor
protected boolean canBeRemovedFromHierarchy()
canBeRemovedFromHierarchy
in class VintageTestDescriptor
public void prune()
TestDescriptor
A concrete TestEngine
may override this method in order to
implement a different algorithm or to skip pruning altogether.
public void clearFilters()
public void applyFilters(Consumer<RunnerTestDescriptor> childrenCreator)
Copyright © 2019. All rights reserved.