Class ExtendedEngineDescriptor
java.lang.Object
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
org.junit.platform.engine.support.descriptor.EngineDescriptor
org.antublue.test.engine.internal.descriptor.ExtendedEngineDescriptor
- All Implemented Interfaces:
org.junit.platform.engine.TestDescriptor
public final class ExtendedEngineDescriptor
extends org.junit.platform.engine.support.descriptor.EngineDescriptor
Class to implement a extended EngineDescriptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.platform.engine.TestDescriptor
org.junit.platform.engine.TestDescriptor.Type, org.junit.platform.engine.TestDescriptor.Visitor -
Field Summary
Fields inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
children -
Constructor Summary
ConstructorsConstructorDescriptionExtendedEngineDescriptor(org.junit.platform.engine.UniqueId uniqueId, String displayName) Constructor -
Method Summary
Modifier and TypeMethodDescription<T> List<T>getChildren(Class<T> clazz) Method to get a List of children cast as a specific classOptional<org.junit.platform.engine.TestSource>Method to get the TestSourceorg.junit.platform.engine.TestDescriptor.TypegetType()Method to get the test descriptor TypebooleanMethod to return whether the test descriptor is a containerbooleanisTest()Method to return whether the test descriptor is a testMethods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.junit.platform.engine.TestDescriptor
accept, getDescendants, getLegacyReportingName, isRoot, mayRegisterTests, prune
-
Constructor Details
-
ExtendedEngineDescriptor
Constructor- Parameters:
uniqueId- uniqueIddisplayName- displayName
-
-
Method Details
-
getSource
Method to get the TestSource- Specified by:
getSourcein interfaceorg.junit.platform.engine.TestDescriptor- Overrides:
getSourcein classorg.junit.platform.engine.support.descriptor.AbstractTestDescriptor- Returns:
- the return value
-
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:
- the return value
-
isTest
public boolean isTest()Method to return whether the test descriptor is a test- Returns:
- the return value
-
isContainer
public boolean isContainer()Method to return whether the test descriptor is a container- Returns:
- the return value
-
getChildren
Method to get a List of children cast as a specific class- Type Parameters:
T- the return type- Parameters:
clazz- clazz- Returns:
- the return value
-