public class JUnit4RunListener
extends org.junit.runner.notification.RunListener
| Modifier and Type | Field and Description |
|---|---|
protected RunListener |
reporter |
| Constructor and Description |
|---|
JUnit4RunListener(RunListener reporter)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected SimpleReportEntry |
createReportEntry(org.junit.runner.Description description) |
protected StackTraceWriter |
createStackTraceWriter(org.junit.runner.notification.Failure failure) |
static String |
extractClassName(org.junit.runner.Description description) |
static String |
extractMethodName(org.junit.runner.Description description) |
static void |
rethrowAnyTestMechanismFailures(org.junit.runner.Result run) |
void |
testAssumptionFailure(org.junit.runner.notification.Failure failure) |
void |
testExecutionSkippedByUser()
Delegates to
RunListener.testExecutionSkippedByUser(). |
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 RunListener reporter
public JUnit4RunListener(RunListener reporter)
reporter - the reporter to log testing events topublic void testIgnored(org.junit.runner.Description description)
throws Exception
testIgnored in class org.junit.runner.notification.RunListenerExceptionRunListener.testIgnored(org.junit.runner.Description)public void testStarted(org.junit.runner.Description description)
throws Exception
testStarted in class org.junit.runner.notification.RunListenerExceptionRunListener.testStarted(org.junit.runner.Description)public void testFailure(org.junit.runner.notification.Failure failure)
throws Exception
testFailure in class org.junit.runner.notification.RunListenerExceptionRunListener.testFailure(org.junit.runner.notification.Failure)public void testAssumptionFailure(org.junit.runner.notification.Failure failure)
public void testFinished(org.junit.runner.Description description)
throws Exception
testFinished in class org.junit.runner.notification.RunListenerExceptionRunListener.testFinished(org.junit.runner.Description)public void testExecutionSkippedByUser()
RunListener.testExecutionSkippedByUser().protected StackTraceWriter createStackTraceWriter(org.junit.runner.notification.Failure failure)
protected SimpleReportEntry createReportEntry(org.junit.runner.Description description)
public static String extractClassName(org.junit.runner.Description description)
public static String extractMethodName(org.junit.runner.Description description)
public static void rethrowAnyTestMechanismFailures(org.junit.runner.Result run)
throws TestSetFailedException
TestSetFailedExceptionCopyright © 2004–2015 The Apache Software Foundation. All rights reserved.