All Downloads are FREE. Search and download functionalities are using the official Maven repository.

junitparams.converters.Param Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
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(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy