@API(value=Experimental) public class EngineDescriptor extends AbstractTestDescriptor
TestDescriptor.Visitor
Constructor and Description |
---|
EngineDescriptor(UniqueId uniqueId,
String displayName)
Create a new
EngineDescriptor with the supplied UniqueId
and display name. |
Modifier and Type | Method and Description |
---|---|
boolean |
isContainer()
Always returns
true : a TestEngine is always a container. |
boolean |
isTest()
Always returns
false : a TestEngine is never a test. |
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, setSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accept, getDescendants, hasTests, isRoot
public EngineDescriptor(UniqueId uniqueId, String displayName)
EngineDescriptor
with the supplied UniqueId
and display name.uniqueId
- the UniqueId
for the described TestEngine
;
never null
displayName
- the display name for the described TestEngine
;
never null
or blankTestEngine.getId()
,
TestDescriptor.getDisplayName()
public final boolean isTest()
false
: a TestEngine
is never a test.TestDescriptor.isTest()
,
isContainer()
public final boolean isContainer()
true
: a TestEngine
is always a container.TestDescriptor.isContainer()
,
isTest()