Annotation Interface FixtureConstructor


@Target(TYPE) @Retention(SOURCE) @Repeatable(FixtureConstructors.class) public @interface FixtureConstructor
Indicates that a generated fixture should contain a method to create said fixture using the specified constructor. This implies that the annotated class has the corresponding constructor to facilitate the use of said constructor for fixture generation.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the string representation of the parameters defining the constructor that should be used for the creation of the fixture.
    Returns the name of the creation method.
  • Element Details

    • methodName

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

      String[] constructorParameters
      Returns the string representation of the parameters defining the constructor that should be used for the creation of the fixture. The parameters have to be in the same order in the constructor that is being referenced. The value itself has to be either the name of the corresponding field or FixtureConstant.name() if specified.
      Returns:
      the constructor parameter representations