import java.util.Arrays;
import java.util.List;
import junitparams.JUnitParamsRunner;
import junitparams.Parameters;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(JUnitParamsRunner.class)
public class JunitParamsTest {
@Test
@Parameters(method = "collectionMethod")
public void shouldNotTryToInvokeMethodWhenTestIgnored(Object a) {
}
public List<Object> collectionMethod() {
return Arrays.asList(new Object[] { "a" });
}
}
all collection/iterable classes should be supported
Original issue reported on code.google.com by tomasz.b...@pragmatists.pl on 5 Jan 2012 at 8:29
Original issue reported on code.google.com by
tomasz.b...@pragmatists.pl
on 5 Jan 2012 at 8:29