title: Using Groovy with Multiple TestNG Parameters
body: <p>I am trying to pass in multiple parameters into a TestNG annotated method where my class is written in Groovy.  I understand the correct formats for multiple TestNG parameters are the following: </p>
  
  <pre><code>@Parameters({"category", "exampleDesc"})           //option 1
  @Parameters(value = {"category", "exampleDesc"})   //option 2
  </code></pre>
  
  <p>However, as I'm using Groovy, I see the following error:</p>
  
  <blockquote>
    <p>';', '}' or new line expected</p>
  </blockquote>
  
  <p>If I follow either option 1 or 2 in the error I see </p>
  
  <blockquote>
    <p>Cannot assigned 'Class' to 'String[]'.</p>
  </blockquote>
  
  <p>This problem does not exist when using Java. Is there a way to pass in multiple parameters to TestNG annotated methods with Groovy? For those curious, I'm using a @DataProvider in another area of the code.</p>
  
  <p>Thank you in advance! Here's a snitbit of code:</p>
  
  <pre><code>public class test {
       @BeforeClass
       @Parameters({"A", "B"})
       public def before(A, B) { //code here } 
  }
  </code></pre>