Package com.atlassian.jira.local.runner
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
(junit.framework.TestCase test) void
fireTestStarted
(org.junit.runner.Description description) static GlobalRunNotifier
org.junit.runner.Result
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, fireTestSuiteFinished, fireTestSuiteStarted, pleaseStop, removeListener
-
Constructor Details
-
GlobalRunNotifier
public GlobalRunNotifier()
-
-
Method Details
-
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 classorg.junit.runner.notification.RunNotifier
-
fireTestRunFinished
public void fireTestRunFinished(org.junit.runner.Result result) - Overrides:
fireTestRunFinished
in classorg.junit.runner.notification.RunNotifier
-
fireTestStarted
public void fireTestStarted(org.junit.runner.Description description) throws org.junit.runner.notification.StoppedByUserException - Overrides:
fireTestStarted
in classorg.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
-
fireTestFinished
public void fireTestFinished(junit.framework.TestCase test)
-