Hi,
I'm trying to use JUnit, but I want to control how the test case is executed using an external configuration file. I thought about using an Parameterized test class such as -
@RunWith(Parameterized.class)
public class SampleTest {
private int x, y;
@Test
public void runSampleTest() {
System.out.println("Running runSampleTest()");
}
@Parameters
public static LinkedList data() {
LinkedList params = new LinkedList();
params.add(new Integer[] { 1, 3 });
return params;
}
}
However, I can only specify my parameter values from within the method data(). How can I configure this dynamically?
Thanks,
--John C.