org.kiwiproject.test.junit.ParameterizedTests Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kiwi-test Show documentation
Show all versions of kiwi-test Show documentation
Kiwi Test is a test utility library.
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