public class Listener
extends org.junit.runner.notification.RunListener
Modifier and Type | Field and Description |
---|---|
protected String |
stackTrace |
static String |
TEST_CLASS_NAME_SEPARATOR |
Constructor and Description |
---|
Listener() |
Modifier and Type | Method and Description |
---|---|
void |
onRunFinish()
Called when all tests have finished.
|
void |
onRunStart()
Called before any tests have been run.
|
void |
onTestFailure(String trace)
Called when an atomic test fails.
|
void |
onTestFinish(String testName)
Called when an atomic test has finished (whether the test successes or fails).
|
void |
onTestSkipped()
Called when a test will not be run, generally because a test method is annotated with @Ignore
or similar annotation.
|
void |
onTestStart()
Called when an atomic test is about to be started.
|
protected String |
traceToString(Throwable exception)
Converts the stack trace of a throwable exception to string.
|
public static final String TEST_CLASS_NAME_SEPARATOR
protected String stackTrace
public final void onRunStart()
public final void onRunFinish()
public final void onTestStart()
public final void onTestFinish(String testName)
testName
- public final void onTestFailure(String trace)
public final void onTestSkipped()
Copyright © 2010–2019 GZoltar. All rights reserved.