Annotation Interface GenData


Annotation to define data generation configuration for a test method. package doc detail the semantics if none of the facetsNames() or facets() is defined by client code.

How should a processing engine resolve names

  1. Looking for TableFacetsSource.value() or DataGeneratorSource.value().
  2. Using the name of method/field.
See Also:
  • Element Details

    • value

      Class<? extends TableFacetsProvider<? extends TableFacet>>[] value
      Defines the a builder(as a Supplier) of TableFacet for generating rules of tables. This property has higher priority than facets().
      Returns:
      The classes of providers for table facets
      See Also:
      Default:
      {}
    • facets

      Class<? extends TableFacetsProvider<? extends TableFacet>>[] facets
      Defines the a builder(as a Supplier) of TableFacet for generating rules of tables. This property has higher priority than facetsNames().
      Returns:
      The classes of providers for table facets
      See Also:
      Default:
      {}
    • facetsNames

      String[] facetsNames
      Defines the name of TableFacet for generating rules of tables. The resolving of names is dependent on TableFacetsSource and the implementation of processing engine.
      Returns:
      The names of table facets
      Default:
      {}
    • generator

      Class<? extends DataGeneratorProvider<? extends TableFacet>> generator
      Defines the data generator(as a Supplier).

      Only one of generatorName() or this property should be defined.

      Returns:
      The class of provider for data generator
      Default:
      guru.mikelue.foxglove.annotation.GenData.FallbackDataGeneratorProvider.class
    • generatorName

      String generatorName
      Defines the name of data generator(as a Supplier).

      Only one of generator() or this property should be defined. The resolving of names is dependent on DataGeneratorSource and the implementation of processing engine.

      Returns:
      The name of data generator
      Default:
      ""