class EngineDiscoveryErrorDescriptor extends AbstractTestDescriptor
TestEngine
during discovery.
The contained Throwable will be reported as the cause of a test
failure by the DefaultLauncher when execution is started for this
engine.
TestDescriptor.Type, TestDescriptor.Visitor| Modifier and Type | Field and Description |
|---|---|
private java.lang.Throwable |
cause |
children| Constructor and Description |
|---|
EngineDiscoveryErrorDescriptor(UniqueId uniqueId,
TestEngine testEngine,
java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
(package private) java.lang.Throwable |
getCause() |
TestDescriptor.Type |
getType()
Determine the
TestDescriptor.Type of this descriptor. |
void |
prune()
Remove this descriptor from the hierarchy unless it is a root or contains
tests.
|
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaccept, containsTests, getDescendants, getLegacyReportingName, isContainer, isRoot, isTest, mayRegisterTestsEngineDiscoveryErrorDescriptor(UniqueId uniqueId, TestEngine testEngine, java.lang.Throwable cause)
java.lang.Throwable getCause()
public TestDescriptor.Type getType()
TestDescriptorTestDescriptor.Type of this descriptor.null.TestDescriptor.isContainer(),
TestDescriptor.isTest()public void prune()
TestDescriptorA concrete TestEngine may override this method in order to
implement a different algorithm or to skip pruning altogether.