我已经编写了如下代码:但是在编译时,它抛出编译错误
“未为注释类型Parameterized.Parameters定义属性'name‘”
@RunWith(Parameterized.class)
public class TrustStandaloneTestSimple {
@BeforeClass
public static void setup() {
}
@Parameters(name = "propertyFileName")
public static Collection<String[]> getParameters(){
return Arrays.asList(new String [][]{{"trust.keystore.simple1.properties"},
{"trust.keystore.simple2.properties"}});
}发布于 2019-01-29 22:58:34
如果您有以下不同的导入,则可能会导致此问题。
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;请查查你们的进口货
https://stackoverflow.com/questions/54425373
复制相似问题