You are using @Parameters completely wrong (in fact what you have in not valid Java syntax as the methods testmethodsx
do not have return values).
See the example at this site.
There should be only one @Parameters
method. It should be static
and return a Collection<Object[]>
. The number of elements in the array must be equal to the number of arguments in the test class' constructor.
In the example you will see that FibonacciTest
has a constructor that takes 2 arguments. Each array returned by the @Parameteres
method contains 2 elements. These elements are passed to the constructor and the tests should use the fields to make parameter-specific tests.