title: java junit testing in a loop
body: <p>I have a JUnit test that I would like to run from a main method.  I would like to retrieve multiple records from a database (within the main method) and pass each record into the JUnit, using a data object, so that each record can be tested. Can I pass a data object into the run method of JUnit. If not what is the best way to accomplish this.  There are so many different scenarios that I would like to use actual data from the database. There could be as many as 5000 or more records to test.</p>
  
  <p>Thanks 
  Doug</p>