Interface ArgumentsGeneratorFactory

All Known Implementing Classes:
InstancioArgumentsGeneratorFactory, JetCheckArgumentsGeneratorFactory, QuickcheckArgumentsGeneratorFactory

public interface ArgumentsGeneratorFactory
Builds an ArgumentsGenerator for a specific test method.

Implementations are discovered through ServiceLoader, which makes the generation library a pluggable choice. The factory inspects the method's parameters and annotations once and returns a generator that the engine then drives for every trial.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    create(Class<?> testClass, Method testMethod)
    Creates a generator bound to the given test method.
  • Method Details

    • create

      ArgumentsGenerator create(Class<?> testClass, Method testMethod)
      Creates a generator bound to the given test method.
      Parameters:
      testClass - the class declaring the test method
      testMethod - the test method whose arguments will be generated
      Returns:
      a generator for the method's parameters