org.unitils.UnitilsParameterized Maven / Gradle / Ivy
package org.unitils;
import java.lang.annotation.Annotation;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.internal.runners.InitializationError;
import org.junit.internal.runners.MethodValidator;
import org.junit.runner.Runner;
import org.junit.runners.Parameterized.Parameters;
import org.junit.runners.Suite;
import org.junit.runners.model.FrameworkMethod;
import org.junit.runners.model.TestClass;
/**
* Parameterized runner.
*
* @author Jeroen Horemans
* @author Thomas De Rycke
* @author Willemijn Wouters
*
* @since 3.4
*
*/
public class UnitilsParameterized extends Suite {
private Class> clazz;
private static final Log LOGGER = LogFactory.getLog(UnitilsParameterized.class);
private static final String METHOD = "Method ";
/**
*
* TestClassRunnerForParameters.
*
* @author wiw
*
* @since
*
*/
protected class TestClassRunnerForParameters extends UnitilsJUnit4TestClassRunner {
private final int fParameterSetNumber;
private final List