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

    Constructors
    Constructor
    Description
    ExtendedEngineDescriptor(org.junit.platform.engine.UniqueId uniqueId, String displayName)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> List<T>
    getChildren(Class<T> clazz)
    Method to get a List of children cast as a specific class
    Optional<org.junit.platform.engine.TestSource>
    Method to get the TestSource
    org.junit.platform.engine.TestDescriptor.Type
    Method to get the test descriptor Type
    boolean
    Method to return whether the test descriptor is a container
    boolean
    Method to return whether the test descriptor is a test

    Methods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor

    addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, 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, getAncestors, getDescendants, getLegacyReportingName, isRoot, mayRegisterTests, prune
  • Constructor Details

    • ExtendedEngineDescriptor

      public ExtendedEngineDescriptor(org.junit.platform.engine.UniqueId uniqueId, String displayName)
      Constructor
      Parameters:
      uniqueId - uniqueId
      displayName - displayName
  • Method Details

    • getSource

      public Optional<org.junit.platform.engine.TestSource> getSource()
      Method to get the TestSource
      Specified by:
      getSource in interface org.junit.platform.engine.TestDescriptor
      Overrides:
      getSource in class org.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:
      getType in interface org.junit.platform.engine.TestDescriptor
      Overrides:
      getType in class org.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

      public <T> List<T> getChildren(Class<T> clazz)
      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