0

I have written a code as follow: but while compiling it throws the compilation error saying

"The attribute 'name' is undefined for the annotation type 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"}});
    }
Rmahajan
  • 1,311
  • 1
  • 14
  • 23
C.k.
  • 93
  • 2
  • 13

1 Answers1

0

If you have different imports other than below may cause the issue

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

Please check your imports

Rmahajan
  • 1,311
  • 1
  • 14
  • 23
  • Already imported everything correctly. It was just the configuration issue that caused this error. System was using older version of JUnit. Nothing wrong in declaration. Thanks for the help though. – C.k. Jan 30 '19 at 06:15