com.atlassian.jira.local.runner
Class GlobalRunNotifier

java.lang.Object
  extended by org.junit.runner.notification.RunNotifier
      extended by 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 Summary
GlobalRunNotifier()
           
 
Method Summary
 void fireTestFailure(junit.framework.TestCase test, Throwable thrownException)
           
 void fireTestFinished(junit.framework.TestCase test)
           
 void fireTestRunFinished(org.junit.runner.Result result)
           
 void fireTestRunStarted(org.junit.runner.Description description)
           
 void fireTestStarted(org.junit.runner.Description description)
           
 void fireTestStarted(junit.framework.TestCase test)
           
static GlobalRunNotifier getInstance()
           
 org.junit.runner.Result getResult()
          At any time you can ask for the live result object of the test suite run.
 
Methods inherited from class org.junit.runner.notification.RunNotifier
addFirstListener, addListener, fireTestAssumptionFailed, fireTestFailure, fireTestFinished, fireTestIgnored, pleaseStop, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalRunNotifier

public GlobalRunNotifier()
Method Detail

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)


Copyright © 2002-2014 Atlassian. All Rights Reserved.