Class ArgumentTestDescriptor

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

public class ArgumentTestDescriptor extends ExecutableTestDescriptor
Class to implement a ArgumentTestDescriptor
  • 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.antublue.test.engine.internal.descriptor.ExecutableTestDescriptor

    metadata, stopWatch, throwableCollector

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

    children
  • Constructor Summary

    Constructors
    Constructor
    Description
    ArgumentTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, String displayName, Class<?> testClass, List<Method> beforeAllMethods, List<Method> afterAllMethods, Argument<?> testArgument)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    create(org.junit.platform.engine.UniqueId parentUniqueId, Class<?> testClass, Argument<?> testArgument, int testArgumentIndex)
    Method to create an ArgumentTestDescriptor
    void
    execute(ExecutionContext executionContext)
    Method to execute the test descriptor
    Optional<org.junit.platform.engine.TestSource>
     
    org.junit.platform.engine.TestDescriptor.Type
     
    void
    skip(ExecutionContext executionContext)
    Method to skip child test descriptors
     

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

    collectThrowables, getMetadata

    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

    • ArgumentTestDescriptor

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

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

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

      public void execute(ExecutionContext executionContext)
      Description copied from class: ExecutableTestDescriptor
      Method to execute the test descriptor
      Specified by:
      execute in class ExecutableTestDescriptor
      Parameters:
      executionContext - executionContext
    • skip

      public void skip(ExecutionContext executionContext)
      Description copied from class: ExecutableTestDescriptor
      Method to skip child test descriptors
      Specified by:
      skip in class ExecutableTestDescriptor
      Parameters:
      executionContext - executionContext
    • toString

      public String toString()
      Overrides:
      toString in class ExecutableTestDescriptor
    • create

      public static ArgumentTestDescriptor create(org.junit.platform.engine.UniqueId parentUniqueId, Class<?> testClass, Argument<?> testArgument, int testArgumentIndex)
      Method to create an ArgumentTestDescriptor
      Parameters:
      parentUniqueId - parentUniqueId
      testClass - testClass
      testArgument - testArgument
      testArgumentIndex - testArgumentIndex
      Returns:
      an ArgumentTestDescriptor