public class

GlobalRunNotifier

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

Class Overview

A global container of TestListener objects to allow us to spy on our own test code

Summary

Public Constructors
GlobalRunNotifier()
Public Methods
void fireTestFailure(TestCase test, Throwable thrownException)
void fireTestFinished(TestCase test)
void fireTestRunFinished(Result result)
void fireTestRunStarted(Description description)
void fireTestStarted(TestCase test)
void fireTestStarted(Description description)
static GlobalRunNotifier getInstance()
Result getResult()
At any time you can ask for the live result object of the test suite run.
[Expand]
Inherited Methods
From class org.junit.runner.notification.RunNotifier
From class java.lang.Object

Public Constructors

public GlobalRunNotifier ()

Public Methods

public void fireTestFailure (TestCase test, Throwable thrownException)

public void fireTestFinished (TestCase test)

public void fireTestRunFinished (Result result)

public void fireTestRunStarted (Description description)

public void fireTestStarted (TestCase test)

Throws
StoppedByUserException

public void fireTestStarted (Description description)

Throws
StoppedByUserException

public static GlobalRunNotifier getInstance ()

public Result getResult ()

At any time you can ask for the live result object of the test suite run.

Returns
  • a org.junit.runner.Result object. Its alive!