Class RunnableEngineDescriptor
- java.lang.Object
-
- org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
- org.junit.platform.engine.support.descriptor.EngineDescriptor
-
- org.antublue.test.engine.internal.descriptor.RunnableEngineDescriptor
-
- All Implemented Interfaces:
org.junit.platform.engine.TestDescriptor
public final class RunnableEngineDescriptor extends org.junit.platform.engine.support.descriptor.EngineDescriptorClass to implement a Runnable EngineDescriptor
-
-
Constructor Summary
Constructors Constructor Description RunnableEngineDescriptor(org.junit.platform.engine.UniqueId uniqueId, String displayName)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> List<T>getChildren(Class<T> clazz)Method to get a List of children cast as a specific classOptional<org.junit.platform.engine.TestSource>getSource()Method to get the TestSourceorg.junit.platform.engine.TestDescriptor.TypegetType()Method to get the test descriptor TypebooleanisContainer()Method to return whether the test descriptor is a containerbooleanisTest()Method to return whether the test descriptor is a testvoidrun()-
Methods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toString
-
-
-
-
Constructor Detail
-
RunnableEngineDescriptor
public RunnableEngineDescriptor(org.junit.platform.engine.UniqueId uniqueId, String displayName)Constructor- Parameters:
uniqueId-displayName-
-
-
Method Detail
-
getSource
public Optional<org.junit.platform.engine.TestSource> getSource()
Method to get the TestSource- Specified by:
getSourcein interfaceorg.junit.platform.engine.TestDescriptor- Overrides:
getSourcein classorg.junit.platform.engine.support.descriptor.AbstractTestDescriptor- Returns:
-
getType
public org.junit.platform.engine.TestDescriptor.Type getType()
Method to get the test descriptor Type- Specified by:
getTypein interfaceorg.junit.platform.engine.TestDescriptor- Overrides:
getTypein classorg.junit.platform.engine.support.descriptor.EngineDescriptor- Returns:
-
isTest
public boolean isTest()
Method to return whether the test descriptor is a test- Returns:
-
isContainer
public boolean isContainer()
Method to return whether the test descriptor is a container- Returns:
-
getChildren
public <T> List<T> getChildren(Class<T> clazz)
Method to get a List of children cast as a specific class- Type Parameters:
T-- Parameters:
clazz-- Returns:
-
run
public void run()
-
-