0

我编写了如下代码:但是在编译时会抛出编译错误说

“注释类型 Parameterized.Parameters 的属性‘名称’未定义”

@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"}});
    }
4

1 回答 1

0

如果您有以下以外的其他导入可能会导致问题

import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;

请检查您的进口

于 2019-01-29T22:58:34.503 回答