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 ElementsModifier and TypeRequired ElementDescriptionString[]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 methodNameReturns the name of the creation method.- Returns:
- the name.
-
constructorParameters
String[] constructorParametersReturns 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 orFixtureConstant.name()if specified.- Returns:
- the constructor parameter representations
-