title: How can I pass an array as parameter in a Data driven test in Java?
body: <p>Currently I have to know the no. of parameters I'm passing to the test function.
  Is there a way to pass parameters to the test function from the Data Provider as an array of indefinite number of elements?
  I'm reading rows of data from an excel sheet, and the idea is to execute each row as a separate test. 
  I'm using testNG to run these tests.</p>