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

junitparams.FileParameters Maven / Gradle / Ivy

package junitparams;

import java.lang.annotation.*;

import junitparams.internal.*;
import junitparams.mappers.*;

/**
 * 
 * Denotes that parameters for a annotated test method should be taken from an
 * external resource.
 * 
 * @author Pawel Lipinski
 */
@Retention(RetentionPolicy.RUNTIME)
public @interface FileParameters {

    /**
     * File name (with full path) of the file with data.
     */
    String value();

    /**
     * The mapper which knows how to get the data from the external resource and
     * turn it into a valid set of parameters. By default it is an
     * IdentityMapper, meaning the resource has exactly the same format as the
     * 
     * @Parameters annotation value (when passed as String), being CSV.
     */
    Class mapper() default IdentityMapper.class;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy