java - Type mismatch: cannot convert from Class to Class -



java - Type mismatch: cannot convert from Class<Parameterized> to Class<? extends Runner> -

i trying execute junit tests parameters.

import java.util.arrays; import java.util.collection; import java.util.list; import org.junit.assert; import org.junit.test; import org.junit.runner.runwith; import com.beust.jcommander.parameterized; import org.junit.runners.parameterized.parameters; @runwith(parameterized.class) public class qtybyparam extends testbase_post {

i have included jars junit-4.11.jar, junit-dep-4.11.jar

is there missing? getting type mismatch: cannot convert class<parameterized> class<? extends runner> error @ @runwith section.

you have wrong class imported:

import com.beust.jcommander.parameterized;

this right import:

import org.junit.runners.parameterized;

java junit parameterized

Comments