Module org.junit.platform.engine
Class EngineDescriptor
- java.lang.Object
-
- org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
- org.junit.platform.engine.support.descriptor.EngineDescriptor
-
- All Implemented Interfaces:
TestDescriptor
- Direct Known Subclasses:
JupiterEngineDescriptor
,VintageEngineDescriptor
@API(status=STABLE, since="1.0") public class EngineDescriptor extends AbstractTestDescriptor
- Since:
- 1.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.junit.platform.engine.TestDescriptor
TestDescriptor.Type, TestDescriptor.Visitor
-
-
Field Summary
-
Fields inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
children
-
-
Constructor Summary
Constructors Constructor Description EngineDescriptor(UniqueId uniqueId, String displayName)
Create a newEngineDescriptor
with the suppliedUniqueId
and display name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestDescriptor.Type
getType()
ReturnsTestDescriptor.Type.CONTAINER
.-
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, prune
-
-
-
-
Constructor Detail
-
EngineDescriptor
public EngineDescriptor(UniqueId uniqueId, String displayName)
Create a newEngineDescriptor
with the suppliedUniqueId
and display name.- Parameters:
uniqueId
- theUniqueId
for the describedTestEngine
; nevernull
displayName
- the display name for the describedTestEngine
; nevernull
or blank- See Also:
TestEngine.getId()
,TestDescriptor.getDisplayName()
-
-
Method Detail
-
getType
public TestDescriptor.Type getType()
ReturnsTestDescriptor.Type.CONTAINER
.- Returns:
- the descriptor type; never
null
. - See Also:
TestDescriptor.isContainer()
,TestDescriptor.isTest()
-
-