title: junit 4.10 how to get the test case name printed before the test starts running
body: <p>junit 4.10 how to get the test case name printed before the test starts running..</p>
  
  <p>So here I want to print "sampleTest".</p>
  
  <p>How do I do it in junit 4.10 ? Thank you in advance</p>
  
  <pre><code>class1:
  TestSuite all = new TestSuite();
  all.addTestSuite(class2);
  all.run(result);
  
  class2:
  public class profileTest extends TestCase()
  {
    //I want to print the test cases name before the test actually starts executing
  
      @Test
      public void sampleTest1(){
          //Some code here.
      }
  
      @Test
      public void sampleTest2(){
      //some more code here.
      }
  }
  </code></pre>