Module org.junit.platform.launcher
Package org.junit.platform.launcher.core
Class EngineDiscoveryErrorDescriptor
java.lang.Object
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
org.junit.platform.launcher.core.EngineDiscoveryErrorDescriptor
- All Implemented Interfaces:
TestDescriptor
Represents an error thrown by a
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.
- Since:
- 1.6
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.platform.engine.TestDescriptor
TestDescriptor.Type, TestDescriptor.Visitor -
Field Summary
FieldsFields inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
children -
Constructor Summary
ConstructorsConstructorDescriptionEngineDiscoveryErrorDescriptor(UniqueId uniqueId, TestEngine testEngine, Throwable cause) -
Method Summary
Modifier and TypeMethodDescription(package private) ThrowablegetCause()getType()Determine theTestDescriptor.Typeof this descriptor.voidprune()Remove this descriptor from the hierarchy unless it is a root or contains tests.Methods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.junit.platform.engine.TestDescriptor
accept, getAncestors, getDescendants, getLegacyReportingName, isContainer, isRoot, isTest, mayRegisterTests
-
Field Details
-
cause
-
-
Constructor Details
-
EngineDiscoveryErrorDescriptor
EngineDiscoveryErrorDescriptor(UniqueId uniqueId, TestEngine testEngine, Throwable cause)
-
-
Method Details
-
getCause
Throwable getCause() -
getType
Description copied from interface:TestDescriptorDetermine theTestDescriptor.Typeof this descriptor.- Returns:
- the descriptor type; never
null. - See Also:
-
prune
public void prune()Description copied from interface:TestDescriptorRemove this descriptor from the hierarchy unless it is a root or contains tests.A concrete
TestEnginemay override this method in order to implement a different algorithm or to skip pruning altogether.- See Also:
-