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

org.kiwiproject.test.junit.ParameterizedTests Maven / Gradle / Ivy

There is a newer version: 3.7.0
Show newest version
package org.kiwiproject.test.junit;

import static com.google.common.collect.Lists.newArrayList;

import lombok.experimental.UtilityClass;

import java.util.List;

/**
 * Shared utilities for parameterized tests.
 */
@UtilityClass
public class ParameterizedTests {

    /**
     * Helper method that creates a list of inputs of some type {@code T}, mainly useful for readability in tests.
     *
     * @param values the values to use as inputs in a parameterized test
     * @param     the type of objects
     * @return a mutable list containing the given values
     */
    @SafeVarargs
    public static  List inputs(T... values) {
        return newArrayList(values);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy