title: Print Test Result in JUnit
body: <p>Currently I am making the test case repeat 2 times, so how do I print the results as 2 separate results.</p>
  
  <p>I tried using the built-in function to create the text, however, it does now show either "Success" or "Failure".</p>
  
  <p>Currently I have this code:</p>
  
  <pre><code>public class UnitTestRunner {
      static JUnitCore junitCore;
      static Class&lt;?&gt; testClasses;
  
      public static void main(String[] args) {
          System.out.println("Running Junit Test Suite.");
          Result result = JUnitCore.runClasses(TestSuite.class);
          for (Failure failure : result.getFailures()) {
              System.out.println(failure.toString());
          }
          System.out.println("Successful: " + result.wasSuccessful() +
              " ran " + result.getRunCount() + " tests");
      }
  }
  </code></pre>
  
  <p>This code is working correctly, but I do not know how to implement this into JUnit.</p>
  
  <p>Can someone please help to show, how to implement this code into JUnit test case.</p>