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) |
protected String |
extractDescriptionClassName(org.junit.runner.Description description) |
protected String |
extractDescriptionMethodName(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.RunListener
Exception
RunListener.testIgnored(org.junit.runner.Description)
public void testStarted(org.junit.runner.Description description) throws Exception
testStarted
in class org.junit.runner.notification.RunListener
Exception
RunListener.testStarted(org.junit.runner.Description)
public void testFailure(org.junit.runner.notification.Failure failure) throws Exception
testFailure
in class org.junit.runner.notification.RunListener
Exception
RunListener.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.RunListener
Exception
RunListener.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)
protected String extractDescriptionClassName(org.junit.runner.Description description)
protected String extractDescriptionMethodName(org.junit.runner.Description description)
public static void rethrowAnyTestMechanismFailures(org.junit.runner.Result run) throws TestSetFailedException
TestSetFailedException
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.