title: How to access variables in a test case class from a test suite runner class
body: <p>I have an abstract class that extends the JUnit TestCase with related data</p>
  
  <pre><code>public abstract class AbstractTestClass extends TestCase
  {
  
      public ArrayList&lt;TestDetails&gt; testList;
  }
  </code></pre>
  
  <p>I then have a test class that extends the abstract classes</p>
  
  <pre><code>public class TestClass extends AbstractTestClass
  </code></pre>
  
  <p>This is included in a test suite </p>
  
  <pre><code>@RunWith(Suite.class)
  @Suite.SuiteClasses({
     TestClass.class
  })
  
  
  public class TestSuite {
  
  
  }
  </code></pre>
  
  <p>I then run the test suite from a runner class with a main function</p>
  
  <pre><code>public class TestRunner {
  
      public static void main(String[] args) {
  
          JUnitCore.runClasses(TestSuite.class);
  
      }
  }
  </code></pre>
  
  <p>My question is how do I access the testList data from within the runner class, i.e. if I wanted to print out the details of each element in the list from the main. The data is created dynamically (during the tests are being run)</p>