title: JUnit: The method is undefined for the type ParameterizedMethodTest
body: <p>My test is required to tested with multiple data records rather than single record at a time. <code>JUnitParamsRunner</code> is found for my requirement and trying to learn how it works. Following is my test class.</p>
  
  <pre><code>package test;
  
  import static org.junit.Assert.assertEquals;
  
  import junitparams.JUnitParamsRunner;
  import java.util.Arrays;
  import java.util.Collection;
  
  import org.junit.Test;
  import org.junit.runner.RunWith;
  import org.junit.runners.Parameterized;
  import junitparams.Parameters;
  
  @RunWith(JUnitParamsRunner.class)
  public class ParameterizedMethodTest {
  
      @Test
      @Parameters(method = "getAddedNumbers")
      public void test(int expect,int firstVal,int secondVal) {
          assertEquals("ex: "+expect+"  act: "+firstVal,expect, multiply(firstVal,secondVal) );
      }
  
      public Collection&lt;Integer[]&gt; getAddedNumbers(){
       return $( $(1, 1, 1)// compile error under the second $ sign
               , $(21, 11, 1)// compile error under the second $ sign
       );
  
      }
  
      private int multiply(int a,int b){
          return a*b;
      }
  
  }
  </code></pre>
  
  <p>This has compile errors and couldn't figure out why. Error:</p>
  
  <pre><code>The method $(int, int, int) is undefined for the type ParameterizedMethodTest
  </code></pre>
  
  <p>Please let me know where this code has gone wrong?</p>