public class GlobalRunNotifier
extends org.junit.runner.notification.RunNotifier
TestListener objects to allow us to spy on our own test code| Constructor and Description |
|---|
GlobalRunNotifier() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static GlobalRunNotifier getInstance()
public org.junit.runner.Result getResult()
Result object. Its alive!public void fireTestRunStarted(org.junit.runner.Description description)
fireTestRunStarted in class org.junit.runner.notification.RunNotifierpublic void fireTestRunFinished(org.junit.runner.Result result)
fireTestRunFinished in class org.junit.runner.notification.RunNotifierpublic void fireTestStarted(org.junit.runner.Description description)
throws org.junit.runner.notification.StoppedByUserException
fireTestStarted in class org.junit.runner.notification.RunNotifierorg.junit.runner.notification.StoppedByUserExceptionpublic void fireTestStarted(junit.framework.TestCase test)
throws org.junit.runner.notification.StoppedByUserException
org.junit.runner.notification.StoppedByUserExceptionpublic void fireTestFailure(junit.framework.TestCase test,
Throwable thrownException)
public void fireTestFinished(junit.framework.TestCase test)
Copyright © 2002-2020 Atlassian. All Rights Reserved.