public class ForkingRunListener extends Object implements RunListener, ConsoleLogger, ConsoleOutputReceiver, ConsoleStream
Constructor and Description |
---|
ForkingRunListener(MasterProcessChannelEncoder target,
boolean trim) |
Modifier and Type | Method and Description |
---|---|
void |
debug(String message) |
void |
error(String message) |
void |
error(String message,
Throwable t) |
void |
error(Throwable t) |
void |
info(String message) |
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isInfoEnabled() |
boolean |
isWarnEnabled() |
RunMode |
markAs(RunMode currentRunMode)
Marks the listener with run mode, e.g.
|
void |
println(String message) |
void |
testAssumptionFailure(ReportEntry report)
Event fired when a test assumption failure was encountered.
|
void |
testError(ReportEntry report)
Event fired when a test ended with an error (non anticipated problem)
|
void |
testExecutionSkippedByUser()
Event fired skipping an execution of remaining test-set in other fork(s); or does nothing if no forks.
|
void |
testFailed(ReportEntry report)
Event fired when a test ended with a failure (anticipated problem)
|
void |
testSetCompleted(TestSetReportEntry report)
Indicates end of a given test-set
|
void |
testSetStarting(TestSetReportEntry report)
Indicates the start of a given test-set
|
void |
testSkipped(ReportEntry report)
Event fired when a test is skipped
|
void |
testStarting(ReportEntry report)
Event fired when a test is about to start
|
void |
testSucceeded(ReportEntry report)
Event fired when a test ended successfully
|
void |
warning(String message) |
void |
writeTestOutput(String output,
boolean newLine,
boolean stdout)
Forwards process output from the running test-case into the reporting system
|
public ForkingRunListener(MasterProcessChannelEncoder target, boolean trim)
public void testSetStarting(TestSetReportEntry report)
RunListener
testSetStarting
in interface RunListener
report
- the report entry describing the testsetpublic void testSetCompleted(TestSetReportEntry report)
RunListener
testSetCompleted
in interface RunListener
report
- the report entry describing the testsetpublic void testStarting(ReportEntry report)
RunListener
testStarting
in interface RunListener
report
- The report entry to log forpublic void testSucceeded(ReportEntry report)
RunListener
testSucceeded
in interface RunListener
report
- The report entry to log forpublic void testAssumptionFailure(ReportEntry report)
RunListener
testAssumptionFailure
in interface RunListener
report
- The report entry to log forpublic void testError(ReportEntry report)
RunListener
testError
in interface RunListener
report
- The report entry to log forpublic void testFailed(ReportEntry report)
RunListener
testFailed
in interface RunListener
report
- The report entry to log forpublic void testSkipped(ReportEntry report)
RunListener
testSkipped
in interface RunListener
report
- The report entry to log forpublic void testExecutionSkippedByUser()
RunListener
SurefireProvider
.(The event is fired after the Nth test failed to signal skipping the rest of test-set.)
testExecutionSkippedByUser
in interface RunListener
public RunMode markAs(RunMode currentRunMode)
RunListener
markAs
in interface RunListener
currentRunMode
- set current runpublic void writeTestOutput(String output, boolean newLine, boolean stdout)
ConsoleOutputReceiver
writeTestOutput
in interface ConsoleOutputReceiver
output
- stdout/sterr output from running testsnewLine
- print on new linestdout
- Indicates if this is stdoutpublic boolean isDebugEnabled()
isDebugEnabled
in interface ConsoleLogger
public void debug(String message)
debug
in interface ConsoleLogger
public boolean isInfoEnabled()
isInfoEnabled
in interface ConsoleLogger
public void info(String message)
info
in interface ConsoleLogger
public boolean isWarnEnabled()
isWarnEnabled
in interface ConsoleLogger
public void warning(String message)
warning
in interface ConsoleLogger
public boolean isErrorEnabled()
isErrorEnabled
in interface ConsoleLogger
public void error(String message)
error
in interface ConsoleLogger
public void error(String message, Throwable t)
error
in interface ConsoleLogger
public void error(Throwable t)
error
in interface ConsoleLogger
public void println(String message)
println
in interface ConsoleStream
Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.