com.github.peterwippermann.junit4.parameterizedsuite.util.ParameterizedUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of parameterized-suite Show documentation
Show all versions of parameterized-suite Show documentation
JUnit 4 provides the commonly known Runners "Suite" and "Parameterized". However, as of today there is no Runner implementation that combines the features of both. This library provides a custom Runner for this purpose.
package com.github.peterwippermann.junit4.parameterizedsuite.util;
import java.text.MessageFormat;
import java.util.Arrays;
import java.util.List;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import org.junit.runners.model.FrameworkMethod;
import org.junit.runners.model.TestClass;
/**
* A collection of useful methods extracted and duplicated from {@link Parameterized}.
*
* Code is under the license of JUnit: http://junit.org/junit4/license.html
*
*
* Please see the package info of {@link com.github.peterwippermann.junit4.parameterizedsuite.util} for more details.
*/
public class ParameterizedUtil {
/**
* @param testClass
* @return the parameters from the method annotated with {@link Parameters}
* @throws Throwable
*
* @see Parameterized#allParameters()
*/
@SuppressWarnings("unchecked")
public static Iterable
© 2015 - 2025 Weber Informatics LLC | Privacy Policy