Class TestMethodTestDescriptor

java.lang.Object
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
org.antublue.test.engine.internal.descriptor.ExecutableTestDescriptor
org.antublue.test.engine.internal.descriptor.TestMethodTestDescriptor
All Implemented Interfaces:
Metadata, org.junit.platform.engine.TestDescriptor

public class TestMethodTestDescriptor extends ExecutableTestDescriptor
Class to implement a MethodTestDescriptor
  • 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
    TestMethodTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, String displayName, Class<?> testClass, List<Method> beforeEachMethods, Method testMethod, List<Method> afterEachMethods, Argument<?> testArgument)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    create(org.junit.platform.engine.UniqueId parentUniqueId, Class<?> testClass, Method testMethod, Argument<?> testArgument)
    Method to create a MethodTestDescriptor
    void
    execute(org.junit.platform.engine.ExecutionRequest executionRequest, Object testInstance)
    Method to execute the test descriptor
    Optional<org.junit.platform.engine.TestSource>
     
    org.junit.platform.engine.TestDescriptor.Type
     

    Methods inherited from class org.antublue.test.engine.internal.descriptor.ExecutableTestDescriptor

    getMetadata, getParent, getStopWatch, getThrowableCollector, skip, toString

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

    addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent

    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, isContainer, isRoot, isTest, mayRegisterTests, prune
  • Constructor Details

    • TestMethodTestDescriptor

      public TestMethodTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, String displayName, Class<?> testClass, List<Method> beforeEachMethods, Method testMethod, List<Method> afterEachMethods, Argument<?> testArgument)
      Constructor
      Parameters:
      uniqueId - uniqueId
      displayName - displayName
      testClass - testClass
      beforeEachMethods - beforeEachMethods
      testMethod - testMethod
      afterEachMethods - afterEachMethods
      testArgument - testArgument
  • Method Details

    • getType

      public org.junit.platform.engine.TestDescriptor.Type getType()
    • getSource

      public Optional<org.junit.platform.engine.TestSource> getSource()
      Specified by:
      getSource in interface org.junit.platform.engine.TestDescriptor
      Overrides:
      getSource in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
    • execute

      public void execute(org.junit.platform.engine.ExecutionRequest executionRequest, Object testInstance)
      Description copied from class: ExecutableTestDescriptor
      Method to execute the test descriptor
      Specified by:
      execute in class ExecutableTestDescriptor
      Parameters:
      executionRequest - executionRequest
    • create

      public static TestMethodTestDescriptor create(org.junit.platform.engine.UniqueId parentUniqueId, Class<?> testClass, Method testMethod, Argument<?> testArgument)
      Method to create a MethodTestDescriptor
      Parameters:
      parentUniqueId - parentUniqueId
      testClass - testClass
      testMethod - testMethod
      testArgument - testArgument
      Returns:
      a MethodTestDescriptor