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) Throwable
getCause()
getType()
Determine theTestDescriptor.Type
of this descriptor.void
prune()
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, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:TestDescriptor
Determine theTestDescriptor.Type
of this descriptor.- Returns:
- the descriptor type; never
null
. - See Also:
-
prune
public void prune()Description copied from interface:TestDescriptor
Remove this descriptor from the hierarchy unless it is a root or contains tests.A concrete
TestEngine
may override this method in order to implement a different algorithm or to skip pruning altogether.- See Also:
-