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