1 package junitparams.custom; 2 3 import java.lang.annotation.ElementType; 4 import java.lang.annotation.Retention; 5 import java.lang.annotation.RetentionPolicy; 6 import java.lang.annotation.Target; 7 8 9 /** 10 * Tells JUnitParams which {@link ParametersProvider} to use for parameters generation.<br> 11 * Use instead of {@link junitparams.Parameters} annotation. 12 * <p> 13 * Can also be used to create custom annotations.<br> 14 * Check {@link junitparams.FileParameters}, {@link FileParametersProvider} and CustomParametersProviderTest for usage examples. 15 */ 16 @Retention(RetentionPolicy.RUNTIME) 17 @Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE}) 18 public @interface CustomParameters { 19 20 /** 21 * @return Your custom parameters provider class. 22 */ provider()23 Class<? extends ParametersProvider> provider(); 24 25 } 26