public class JUnit4RunListener
extends org.junit.runner.notification.RunListener
| Constructor and Description |
|---|
JUnit4RunListener(Reporter reporter)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
extractClassName(org.junit.runner.Description description) |
void |
testAssumptionFailure(org.junit.runner.notification.Failure failure) |
void |
testFailure(org.junit.runner.notification.Failure failure)
Called when a specific test has failed.
|
void |
testFinished(org.junit.runner.Description description)
Called after a specific test has finished.
|
void |
testIgnored(org.junit.runner.Description description)
Called when a specific test has been skipped (for whatever reason).
|
void |
testStarted(org.junit.runner.Description description)
Called when a specific test has started.
|
protected final Reporter reporter
public JUnit4RunListener(Reporter reporter)
reporter - the reporter to log testing events topublic void testIgnored(org.junit.runner.Description description)
throws java.lang.Exception
testIgnored in class org.junit.runner.notification.RunListenerjava.lang.ExceptionRunListener.testIgnored(org.junit.runner.Description)public void testStarted(org.junit.runner.Description description)
throws java.lang.Exception
testStarted in class org.junit.runner.notification.RunListenerjava.lang.ExceptionRunListener.testStarted(org.junit.runner.Description)public void testFailure(org.junit.runner.notification.Failure failure)
throws java.lang.Exception
testFailure in class org.junit.runner.notification.RunListenerjava.lang.ExceptionRunListener.testFailure(org.junit.runner.notification.Failure)public void testAssumptionFailure(org.junit.runner.notification.Failure failure)
testAssumptionFailure in class org.junit.runner.notification.RunListenerpublic void testFinished(org.junit.runner.Description description)
throws java.lang.Exception
testFinished in class org.junit.runner.notification.RunListenerjava.lang.ExceptionRunListener.testFinished(org.junit.runner.Description)protected java.lang.String extractClassName(org.junit.runner.Description description)
Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.