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 -
Optional Element Summary
Optional Elements
-
Element Details
-
name
String nameReturns the name of the constant in the generated fixture.- Returns:
- the constant name
-
value
String valueReturns 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:
""
-