public class GlobalRunNotifier
extends org.junit.runner.notification.RunNotifier
TestListener
objects to allow us to spy on our own test codeConstructor 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.RunNotifier
public void fireTestRunFinished(org.junit.runner.Result result)
fireTestRunFinished
in class org.junit.runner.notification.RunNotifier
public void fireTestStarted(org.junit.runner.Description description) throws org.junit.runner.notification.StoppedByUserException
fireTestStarted
in class org.junit.runner.notification.RunNotifier
org.junit.runner.notification.StoppedByUserException
public void fireTestStarted(junit.framework.TestCase test) throws org.junit.runner.notification.StoppedByUserException
org.junit.runner.notification.StoppedByUserException
public void fireTestFailure(junit.framework.TestCase test, Throwable thrownException)
public void fireTestFinished(junit.framework.TestCase test)
Copyright © 2002-2023 Atlassian. All Rights Reserved.