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
class EngineDiscoveryErrorDescriptor extends AbstractTestDescriptor
Represents an error thrown by aTestEngine
during discovery.The contained
Throwable
will be reported as the cause of a test failure by theDefaultLauncher
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
Fields Modifier and Type Field Description private java.lang.Throwable
cause
-
Fields inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
children
-
-
Constructor Summary
Constructors Constructor Description EngineDiscoveryErrorDescriptor(UniqueId uniqueId, TestEngine testEngine, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.Throwable
getCause()
TestDescriptor.Type
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
-
-
-
-
Constructor Detail
-
EngineDiscoveryErrorDescriptor
EngineDiscoveryErrorDescriptor(UniqueId uniqueId, TestEngine testEngine, java.lang.Throwable cause)
-
-
Method Detail
-
getCause
java.lang.Throwable getCause()
-
getType
public TestDescriptor.Type getType()
Description copied from interface:TestDescriptor
Determine theTestDescriptor.Type
of this descriptor.- Returns:
- the descriptor type; never
null
. - See Also:
TestDescriptor.isContainer()
,TestDescriptor.isTest()
-
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.
-
-