I am using the latest bndtools version and linux.
I use parametrized unit tests like so:
@RunWith(Parameterized.class)
public class TestBundleFilter {
@Parameters
public static Collection<Object[]> data() {
return Arrays.asList(new Object[][] {
{ 10, 1 } ,
{ 10, 1 }
});
}
public TestBundleFilter(int i, int j) {
...
}
@Test
public void testme() { .. }
When I right-click on a run descriptor -> run as bnd osgi test launcher (junit) the eclipse junit view
shows me an "Unrooted Tests" entry without the test method name, If there are several test methods, only one is run.
I tried several junit build options, including junit 4.11 that comes with bnd tools, springsource junit and the eclipse integrated JUnit4. Nothing works.
I don't have this problem with the normal ( ie not running in an osgi container ) unit tests.
According to google, this problem has been around since junit 3 but, as I said , I don't encounter it using eclipse luna when run as a non-osgi junit test.
Does anybody encountered this problem ( making parametrized effecitvely unusable ) ?