junitparams.converters
Annotation Type Param


@Retention(value=RUNTIME)
@Target(value={ANNOTATION_TYPE,PARAMETER})
public @interface Param

Annotates parametrized test parameter with information about 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";
  }
 


Required Element Summary
 Class<? extends Converter> converter
           
 

Element Detail

converter

public abstract Class<? extends Converter> converter


Copyright © 2017 Pragmatists. All rights reserved.