Annotation Interface DataGeneratorSource


@Target({FIELD,METHOD}) @Retention(RUNTIME) @Documented @Inherited public @interface DataGeneratorSource
Marks a method or a field as instant/provider of DataGenerator.

For annotated field, its type should be DataGenerator or DataGeneratorProvider.

For annotated method, its return type of method should be DataGenerator.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Defines the name of data generator.
  • Element Details

    • value

      String value
      Defines the name of data generator. Without this attribute, the name of method/field is used as the name.
      Returns:
      The name of data generator
      See Also:
      Default:
      ""