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 aTestEngineduring discovery.The contained
Throwablewill be reported as the cause of a test failure by theDefaultLauncherwhen 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.Throwablecause-
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.ThrowablegetCause()TestDescriptor.TypegetType()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, 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, 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:TestDescriptorDetermine theTestDescriptor.Typeof this descriptor.- Returns:
- the descriptor type; never
null. - See Also:
TestDescriptor.isContainer(),TestDescriptor.isTest()
-
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.
-
-