Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.github.peterwippermann.junit4.parameterizedsuite;
import java.util.LinkedList;
import java.util.List;
import org.junit.After;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runner.Runner;
import org.junit.runner.notification.RunNotifier;
import org.junit.runners.Parameterized;
import org.junit.runners.ParentRunner;
import org.junit.runners.Suite;
import org.junit.runners.model.InitializationError;
import org.junit.runners.model.RunnerBuilder;
import org.junit.runners.model.Statement;
import com.github.peterwippermann.junit4.parameterizedsuite.util.BlockJUnit4ClassRunnerWithParametersUtil;
import com.github.peterwippermann.junit4.parameterizedsuite.util.ParameterizedUtil;
import com.github.peterwippermann.junit4.parameterizedsuite.util.SuiteUtil;
/**
* A replacement for {@link Suite} that combines the features of {@link Suite} with
* {@link Parameterized}.
* Moreover, as an additional feature: If the suite test class is annotated with {@link TestRule},
* {@link ClassRule}, {@link Before} or {@link After}, these will be evaluated as well.
*
*
* This implementation oesn't extend {@link Suite}, because {@link Suite} doesn't allow to extend
* the mechanism of determining the child {@link Runner}s.
*
* @author Peter Wippermann
*
*/
public class ParameterizedSuite extends ParentRunner {
private enum Mode {
/**
* The {@link ParameterizedSuite} is the first of its kind in a hierarchy of tests.
*/
ROOT,
/**
* The {@link ParameterizedSuite} is subordinated to other {@link ParameterizedSuite}s in
* the hierarchy of tests.
*/
NESTED;
}
public static final Class