ttt307307 / junitparams

Automatically exported from code.google.com/p/junitparams
0 stars 0 forks source link

Collection classes should be supported, not only arrays #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago

Original comment by lipinski...@gmail.com on 7 Jan 2012 at 3:12

GoogleCodeExporter commented 8 years ago

Original comment by lipinski...@gmail.com on 9 Jan 2012 at 12:52