0

I am learning JUnit and I am getting the following error for the following point in the code:

The attribute method is undefined for the annotation type Parameterized.Parameters

The method is:

@Test  
@Parameters(method = "getMoney")
private static final Object[] getMoney() {
    return new Object[]{
        new Object[]{10, "USD"},
        new Object[]{20, "EUR"}
    };  
}

I have added JUnit and JUnitParams to build path.

Stefan Birkner
  • 24,059
  • 12
  • 57
  • 72

1 Answers1

2

You are using the wrong Parameters class. Please use

import junitparams.Parameters;
Stefan Birkner
  • 24,059
  • 12
  • 57
  • 72