Package org.robolectric
Annotation Type ParameterizedRobolectricTestRunner.Parameter
@Retention(RUNTIME) @Target(FIELD) public static @interface ParameterizedRobolectricTestRunner.Parameter
Annotation for fields of the test class which will be initialized by the method annotated by
By using directly this annotation, the test class constructor isn't needed.
Index range must start at 0. Default value is 0.
Parameters
By using directly this annotation, the test class constructor isn't needed.
Index range must start at 0. Default value is 0.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description int
value
Method that returns the index of the parameter in the array returned by the method annotated byParameters
.
Index range must start at 0.
-
Element Details
-
value
int valueMethod that returns the index of the parameter in the array returned by the method annotated byParameters
.
Index range must start at 0. Default value is 0.- Returns:
- the index of the parameter.
- Default:
- 0
-