Package guru.mikelue.foxglove.annotation
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
- Looking for
TableFacetsSource.value()orDataGeneratorSource.value(). - Using the name of method/field.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFallback provider of data generator, this provider will throwUnsupportedOperationExceptionwhile being invoked. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<? extends TableFacetsProvider<? extends TableFacet>>[]Defines the a builder(as aSupplier) ofTableFacetfor generating rules of tables.String[]Defines the name ofTableFacetfor generating rules of tables.Class<? extends DataGeneratorProvider<? extends TableFacet>> Defines the data generator(as aSupplier).Defines the name of data generator(as aSupplier).Class<? extends TableFacetsProvider<? extends TableFacet>>[]Defines the a builder(as aSupplier) ofTableFacetfor generating rules of tables.
-
Element Details
-
value
Class<? extends TableFacetsProvider<? extends TableFacet>>[] valueDefines the a builder(as aSupplier) ofTableFacetfor generating rules of tables. This property has higher priority thanfacets().- Returns:
- The classes of providers for table facets
- See Also:
- Default:
{}
-
facets
Class<? extends TableFacetsProvider<? extends TableFacet>>[] facetsDefines the a builder(as aSupplier) ofTableFacetfor generating rules of tables. This property has higher priority thanfacetsNames().- Returns:
- The classes of providers for table facets
- See Also:
- Default:
{}
-
facetsNames
String[] facetsNamesDefines the name ofTableFacetfor generating rules of tables. The resolving of names is dependent onTableFacetsSourceand the implementation of processing engine.- Returns:
- The names of table facets
- Default:
{}
-
generator
Class<? extends DataGeneratorProvider<? extends TableFacet>> generatorDefines the data generator(as aSupplier).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 generatorNameDefines the name of data generator(as aSupplier).Only one of
generator()or this property should be defined. The resolving of names is dependent onDataGeneratorSourceand the implementation of processing engine.- Returns:
- The name of data generator
- Default:
""
-