Annotation Interface FixtureConstant


@Target(FIELD) @Retention(SOURCE) @Repeatable(FixtureConstants.class) public @interface FixtureConstant
Defines how an annotated field should be transformed into a corresponding constant in the generated fixture.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the name of the constant in the generated fixture.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the string representation of the value that the constant should take in the generated fixture.
  • Element Details

    • name

      String name
      Returns the name of the constant in the generated fixture.
      Returns:
      the constant name
    • value

      String value
      Returns the string representation of the value that the constant should take in the generated fixture. This could be a static value as well as valid inline java code.
      Returns:
      the representation of the constant value
      Default:
      ""