title: How to capture Junit test case run result
body: <p>I would like to call some methods on the basis of test case run result. My example code snippet is below</p>
  
  <pre><code>testrun ()
  {
  String Expected, Actual;
  assertEquals(Expected, Actual);
  
  }
  </code></pre>
  
  <p>So, in the above example, if the values of variables Expected and Actual are same, then the test case will pass, else it will fail. </p>
  
  <p>I would like to capture the pass/fail and based upon it to perform some certain actions.
  I am new to Junit and looking for some help here.</p>