Class TypeGeneratorMethodArgumentsProvider

java.lang.Object
de.cuioss.test.generator.junit.parameterized.TypeGeneratorMethodArgumentsProvider
All Implemented Interfaces:
Consumer<TypeGeneratorMethodSource>, org.junit.jupiter.params.provider.ArgumentsProvider, org.junit.jupiter.params.support.AnnotationConsumer<TypeGeneratorMethodSource>

public class TypeGeneratorMethodArgumentsProvider extends Object implements org.junit.jupiter.params.provider.ArgumentsProvider, org.junit.jupiter.params.support.AnnotationConsumer<TypeGeneratorMethodSource>
Implementation of ArgumentsProvider that provides arguments from a TypedGenerator returned by a method for parameterized tests annotated with TypeGeneratorMethodSource.

This provider invokes the specified method to obtain a TypedGenerator instance and generates the requested number of values to be used as test arguments.

The method can be:

  • A method in the test class
  • A static method in another class
Since:
2.0
Author:
Oliver Wolff
See Also: