Class ArgumentTestDescriptor

All Implemented Interfaces:
MetadataTestDescriptor, org.junit.platform.engine.TestDescriptor

public class ArgumentTestDescriptor extends ExecutableTestDescriptor
Class to implement a ArgumentTestDescriptor
  • 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 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