public class NonConcurrentRunListener extends JUnit4RunListener implements ConsoleOutputReceiver
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) |
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, getClassName, rethrowAnyTestMechanismFailures
public NonConcurrentRunListener(RunListener reporter) throws TestSetFailedException
TestSetFailedException
public void writeTestOutput(byte[] buf, int off, int len, boolean stdout)
ConsoleOutputReceiver
writeTestOutput
in interface ConsoleOutputReceiver
buf
- the buffer to writeoff
- offsetlen
- lenstdout
- Indicates if this is stdoutprotected SimpleReportEntry createReportEntry(org.junit.runner.Description description)
createReportEntry
in class JUnit4RunListener
protected SimpleReportEntry createReportEntryForTestSet(org.junit.runner.Description description)
public void testStarted(org.junit.runner.Description description) throws Exception
JUnit4RunListener
testStarted
in class JUnit4RunListener
Exception
RunListener.testStarted(org.junit.runner.Description)
public void testFinished(org.junit.runner.Description description) throws Exception
JUnit4RunListener
testFinished
in class JUnit4RunListener
Exception
RunListener.testFinished(org.junit.runner.Description)
public void testIgnored(org.junit.runner.Description description) throws Exception
JUnit4RunListener
testIgnored
in class JUnit4RunListener
Exception
RunListener.testIgnored(org.junit.runner.Description)
public void testFailure(org.junit.runner.notification.Failure failure) throws Exception
JUnit4RunListener
testFailure
in class JUnit4RunListener
Exception
RunListener.testFailure(org.junit.runner.notification.Failure)
public void testAssumptionFailure(org.junit.runner.notification.Failure failure)
testAssumptionFailure
in class JUnit4RunListener
public void testRunStarted(org.junit.runner.Description description) throws Exception
testRunStarted
in class org.junit.runner.notification.RunListener
Exception
Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.