title: Retrieve Junit test expected result
body: <p>I'm writing Junit test cases for a bunch of classes; each of them has a handful of method to test. The classes I'm about to test look like the following.</p>
  
  <pre><code>class A{
      int getNth(int n);
      int getCount();
  }
  
  class B{
      int[] getAllNth(int n);
      int getMin();
  }
  </code></pre>
  
  <p>I store the expected result for each <code>class.method()</code> in a file. For example, in a CSV,</p>
  
  <pre><code>A; getNth(1):7;        getNth(2):3;          getCount():3
  B; getAllNth(2):[7,3]; getAllNth(3):[7,3,4]; getMin():3
  </code></pre>
  
  <p>My question is how can retrieve those value easily in test cases. I hope to pass the method call <code>A.getNth(2)</code> to a class that can build a string <code>"A.getNth(2)"</code></p>
  
  <p>If the format I store the data is not ideal, free feel to give suggestion on that as well.</p>