What's the easiest way of injecting a set of parameters to a @Parameterized test class?
Use case:
I have a regular class that looks like this
@RunWith(Parameterized.class)
class Tests {
public void testOne() { }
public void testTwo() { }
@Parameters
public static Collection<Object[]> generateData() { }
}
A standard JUnit runner can be invoked like this: org.junit.runner.JUnitCore.runClasses(TestClass1.class, ...);
however, there is no way of then specifying/overriding the parameters.
How can I inject my own parameters?