public class CustomTextListener
extends org.junit.runner.notification.RunListener
| Constructor and Description |
|---|
CustomTextListener(org.junit.internal.JUnitSystem system) |
CustomTextListener(PrintStream writer) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
elapsedTimeAsString(long runTime)
Returns the formatted string of the elapsed time.
|
protected void |
printFailure(org.junit.runner.notification.Failure each,
String prefix) |
protected void |
printFailures(org.junit.runner.Result result) |
protected void |
printFooter(org.junit.runner.Result result) |
protected void |
printHeader(long runTime) |
void |
testFailure(org.junit.runner.notification.Failure failure) |
void |
testIgnored(org.junit.runner.Description description) |
void |
testRunFinished(org.junit.runner.Result result) |
void |
testStarted(org.junit.runner.Description description) |
public CustomTextListener(org.junit.internal.JUnitSystem system)
public CustomTextListener(PrintStream writer)
public void testRunFinished(org.junit.runner.Result result)
testRunFinished in class org.junit.runner.notification.RunListenerpublic void testStarted(org.junit.runner.Description description)
testStarted in class org.junit.runner.notification.RunListenerpublic void testFailure(org.junit.runner.notification.Failure failure)
testFailure in class org.junit.runner.notification.RunListenerpublic void testIgnored(org.junit.runner.Description description)
testIgnored in class org.junit.runner.notification.RunListenerprotected void printHeader(long runTime)
protected void printFailures(org.junit.runner.Result result)
protected void printFailure(org.junit.runner.notification.Failure each,
String prefix)
protected void printFooter(org.junit.runner.Result result)
protected String elapsedTimeAsString(long runTime)