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 Elements
    Modifier and Type
    Required Element
    Description
    Returns the name of the creation method.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the string representation of the static method used to create a builder object for the annotated class.
    Returns the string representation of the setter methods used during for initialization of the builder object.
  • Element Details

    • methodName

      String methodName
      Returns the name of the creation method.
      Returns:
      the name.
    • usedSetters

      String[] usedSetters
      Returns the string representation of the setter methods used during for initialization of the builder object.
      Returns:
      The setter method representations
      Default:
      {}
    • builderMethod

      String builderMethod
      Returns the string representation of the static method used to create a builder object for the annotated class.
      Returns:
      The builder method representation
      Default:
      "builder"