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

com.tngtech.jgiven.annotation.Format Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
package com.tngtech.jgiven.annotation;

import java.lang.annotation.*;

import com.tngtech.jgiven.format.ArgumentFormatter;
import com.tngtech.jgiven.format.PrintfFormatter;

/**
 * Allows arguments of step methods to be formatted with an ArgumentFormatter.
 * 
 * @since 0.7.0 this annotation can be put onto other annotations
 */
@Documented
@Retention( RetentionPolicy.RUNTIME )
@Target( { ElementType.PARAMETER, ElementType.ANNOTATION_TYPE, ElementType.FIELD } )
public @interface Format {
    Class> value() default PrintfFormatter.class;

    /**
     * Optional arguments for the ArgumentFormatter.
     */
    String[] args() default {};
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy