public class NonConcurrentRunListener extends JUnit4RunListener implements ConsoleOutputReceiver
| Modifier and Type | Field and Description |
|---|---|
private org.junit.runner.Description |
currentTestSetDescription |
private org.junit.runner.Description |
lastFinishedDescription |
reporter| Constructor and Description |
|---|
NonConcurrentRunListener(RunListener reporter) |
| Modifier and Type | Method and Description |
|---|---|
protected SimpleReportEntry |
createReportEntry(org.junit.runner.Description description) |
protected SimpleReportEntry |
createReportEntryForTestSet(org.junit.runner.Description description) |
private boolean |
describesNewTestSet(org.junit.runner.Description description) |
private void |
finishLastTestSetIfNecessary(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 |
testRunFinished(org.junit.runner.Result result) |
void |
testRunStarted(org.junit.runner.Description description) |
void |
testStarted(org.junit.runner.Description description)
Called when a specific test has started.
|
void |
writeTestOutput(byte[] buf,
int off,
int len,
boolean stdout)
Forwards process output from the running test-case into the reporting system
|
createStackTraceWriter, extractClassName, extractMethodName, rethrowAnyTestMechanismFailures, testExecutionSkippedByUserprivate org.junit.runner.Description currentTestSetDescription
private org.junit.runner.Description lastFinishedDescription
public NonConcurrentRunListener(RunListener reporter) throws TestSetFailedException
TestSetFailedExceptionpublic void writeTestOutput(byte[] buf,
int off,
int len,
boolean stdout)
ConsoleOutputReceiverwriteTestOutput in interface ConsoleOutputReceiverbuf - the buffer to writeoff - offsetlen - lenstdout - Indicates if this is stdoutprotected SimpleReportEntry createReportEntry(org.junit.runner.Description description)
createReportEntry in class JUnit4RunListenerprotected SimpleReportEntry createReportEntryForTestSet(org.junit.runner.Description description)
public void testStarted(org.junit.runner.Description description)
throws java.lang.Exception
JUnit4RunListenertestStarted in class JUnit4RunListenerjava.lang.ExceptionRunListener.testStarted(org.junit.runner.Description)private void finishLastTestSetIfNecessary(org.junit.runner.Description description)
private boolean describesNewTestSet(org.junit.runner.Description description)
public void testFinished(org.junit.runner.Description description)
throws java.lang.Exception
JUnit4RunListenertestFinished in class JUnit4RunListenerjava.lang.ExceptionRunListener.testFinished(org.junit.runner.Description)public void testIgnored(org.junit.runner.Description description)
throws java.lang.Exception
JUnit4RunListenertestIgnored in class JUnit4RunListenerjava.lang.ExceptionRunListener.testIgnored(org.junit.runner.Description)public void testFailure(org.junit.runner.notification.Failure failure)
throws java.lang.Exception
JUnit4RunListenertestFailure in class JUnit4RunListenerjava.lang.ExceptionRunListener.testFailure(org.junit.runner.notification.Failure)public void testAssumptionFailure(org.junit.runner.notification.Failure failure)
testAssumptionFailure in class JUnit4RunListenerpublic void testRunStarted(org.junit.runner.Description description)
throws java.lang.Exception
testRunStarted in class org.junit.runner.notification.RunListenerjava.lang.Exceptionpublic void testRunFinished(org.junit.runner.Result result)
throws java.lang.Exception
testRunFinished in class org.junit.runner.notification.RunListenerjava.lang.Exception