Class MethodTestDescriptor

java.lang.Object
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
org.antublue.test.engine.internal.descriptor.MethodTestDescriptor
All Implemented Interfaces:
org.junit.platform.engine.TestDescriptor

public final class MethodTestDescriptor extends org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
Class to implement a method descriptor
  • 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
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(ExecutorContext executorContext)
    Method to execute the test descriptor
    <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
    Method to get the test argument
    Method to get the test class
    Method to get the test method
    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
    void
    skip(ExecutorContext executorContext)
    Method to skip the TestDescriptor's children, then the TestDescriptor (recursively)

    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
  • 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
      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
    • getTestClass

      public Class<?> getTestClass()
      Method to get the test class
      Returns:
      the return value
    • getTestArgument

      public Argument getTestArgument()
      Method to get the test argument
      Returns:
      the return value
    • getTestMethod

      public Method getTestMethod()
      Method to get the test method
      Returns:
      the return value
    • execute

      public void execute(ExecutorContext executorContext)
      Method to execute the test descriptor
      Parameters:
      executorContext - testEngineExecutorContext
    • 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
    • skip

      public void skip(ExecutorContext executorContext)
      Method to skip the TestDescriptor's children, then the TestDescriptor (recursively)
      Parameters:
      executorContext - testEngineExecutorContext