@API(status=INTERNAL,
since="4.12")
public class RunnerTestDescriptor
extends VintageTestDescriptor
TestDescriptor.Type, TestDescriptor.VisitorENGINE_ID, SEGMENT_TYPE_DYNAMIC, SEGMENT_TYPE_RUNNER, SEGMENT_TYPE_TESTchildren| Constructor and Description |
|---|
RunnerTestDescriptor(UniqueId uniqueId,
Class<?> testClass,
org.junit.runner.Runner runner) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canBeRemovedFromHierarchy() |
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) |
getDescription, getTags, getType, removeFromHierarchyaddChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, setParent, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaccept, containsTests, getDescendants, getLegacyReportingName, isContainer, isRoot, isTest, mayRegisterTestspublic org.junit.runner.Request toRequest()
protected boolean tryToExcludeFromRunner(org.junit.runner.Description description)
tryToExcludeFromRunner in class VintageTestDescriptorprotected boolean canBeRemovedFromHierarchy()
canBeRemovedFromHierarchy in class VintageTestDescriptorpublic void prune()
TestDescriptorA concrete TestEngine may override this method in order to
implement a different algorithm or to skip pruning altogether.
Copyright © 2020. All rights reserved.