package junitparams.converters; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Annotates parametrized test parameter with information about {@link Converter} that should be used for parameter conversion. *

* Can also be used to create custom annotations.
* example: *

 *  @Retention(RetentionPolicy.RUNTIME)
 *  @Target(ElementType.PARAMETER)
 *  @Param(converter = FormattedDateConverter.class)
 *  public @interface DateParam {
 *
 *      String format() default "dd.MM.yyyy";
 *  }
 * 
*

*/ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.ANNOTATION_TYPE, ElementType.PARAMETER}) public @interface Param { Class converter(); }