Class GlobalRunNotifier

java.lang.Object
org.junit.runner.notification.RunNotifier
com.atlassian.jira.local.runner.GlobalRunNotifier

public class GlobalRunNotifier extends org.junit.runner.notification.RunNotifier
A global container of TestListener objects to allow us to spy on our own test code
Since:
v4.3
  • Constructor Details

    • GlobalRunNotifier

      public GlobalRunNotifier()
  • Method Details

    • getInstance

      public static GlobalRunNotifier getInstance()
    • getResult

      public org.junit.runner.Result getResult()
      At any time you can ask for the live result object of the test suite run.
      Returns:
      a Result object. Its alive!
    • fireTestRunStarted

      public void fireTestRunStarted(org.junit.runner.Description description)
      Overrides:
      fireTestRunStarted in class org.junit.runner.notification.RunNotifier
    • fireTestRunFinished

      public void fireTestRunFinished(org.junit.runner.Result result)
      Overrides:
      fireTestRunFinished in class org.junit.runner.notification.RunNotifier
    • fireTestStarted

      public void fireTestStarted(org.junit.runner.Description description) throws org.junit.runner.notification.StoppedByUserException
      Overrides:
      fireTestStarted in class org.junit.runner.notification.RunNotifier
      Throws:
      org.junit.runner.notification.StoppedByUserException
    • fireTestStarted

      public void fireTestStarted(junit.framework.TestCase test) throws org.junit.runner.notification.StoppedByUserException
      Throws:
      org.junit.runner.notification.StoppedByUserException
    • fireTestFailure

      public void fireTestFailure(junit.framework.TestCase test, Throwable thrownException)
    • fireTestFinished

      public void fireTestFinished(junit.framework.TestCase test)