Package org.junit.experimental.theories
Annotation Type ParametersSuppliedBy
-
@Retention(RUNTIME) @Target({ANNOTATION_TYPE,PARAMETER}) public @interface ParametersSuppliedBy
Annotating aTheory
method parameter with @ParametersSuppliedBy causes it to be supplied with values from the namedParameterSupplier
when run as a theory by theTheories
runner. In addition, annotations themselves can be annotated with @ParametersSuppliedBy, and then used similarly. ParameterSuppliedBy annotations on parameters are detected by searching up this hierarchy such that these act as syntactic sugar, making:@ParametersSuppliedBy(Supplier.class) public @interface SpecialParameter { } @Theory public void theoryMethod(@SpecialParameter String param) { ... }
equivalent to:@Theory public void theoryMethod(@ParametersSuppliedBy(Supplier.class) String param) { ... }
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<? extends ParameterSupplier>
value
-
-
-
Element Detail
-
value
java.lang.Class<? extends ParameterSupplier> value
-
-