Annotation Interface FixtureBuilder
@Target(TYPE)
@Retention(SOURCE)
@Repeatable(FixtureBuilders.class)
public @interface FixtureBuilder
Indicates that a generated fixture should contain a method to create said fixture using the builder pattern. This
implies that the annotated class has the corresponding methods and classes to facilitate the use of the builder
pattern.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionReturns the name of the creation method. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionReturns the string representation of the static method used to create a builder object for the annotated class.String[]Returns the string representation of the setter methods used during for initialization of the builder object.
-
Element Details
-
methodName
String methodNameReturns the name of the creation method.- Returns:
- the name.
-
usedSetters
String[] usedSettersReturns the string representation of the setter methods used during for initialization of the builder object.- Returns:
- The setter method representations
- Default:
{}
-
builderMethod
String builderMethodReturns the string representation of the static method used to create a builder object for the annotated class.- Returns:
- The builder method representation
- Default:
"builder"
-