Interface MasterProcessChannelEncoder
public interface MasterProcessChannelEncoder
An abstraction for physical encoder of events.
- Since:
- 3.0.0-M5
- Author:
- Tibor Digana (tibor17)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
The provider acquires a new test set to run.void
bye()
Say BYE on exit.boolean
void
consoleDebugLog
(String msg) Debug log.void
consoleErrorLog
(String msg) Error log.void
consoleErrorLog
(String msg, Throwable t) Error log.void
Error log.void
consoleErrorLog
(StackTraceWriter stackTraceWriter, boolean trimStackTraces) Error log.void
consoleInfoLog
(String msg) Info log.void
consoleWarningLog
(String msg) Warning log.void
Called on JVM exit error.void
sendExitError
(StackTraceWriter stackTraceWriter, boolean trimStackTraces) ForkedBooter tear down has failed while waiting for BYE_ACK command.void
The provider wants to stop the progress.void
testAssumptionFailure
(ReportEntry reportEntry, boolean trimStackTraces) The test assumption failure.void
testError
(ReportEntry reportEntry, boolean trimStackTraces) The test error.void
testFailed
(ReportEntry reportEntry, boolean trimStackTraces) The test has failed.void
testOutput
(TestOutputReportEntry reportEntry) Test output, a line or characters.void
testSetCompleted
(TestSetReportEntry reportEntry, boolean trimStackTraces) The test set has finished.void
testSetStarting
(TestSetReportEntry reportEntry, boolean trimStackTraces) The test set has started.void
testSkipped
(ReportEntry reportEntry, boolean trimStackTraces) The test is skipped.void
testStarting
(ReportEntry reportEntry, boolean trimStackTraces) The test has started.void
testSucceeded
(ReportEntry reportEntry, boolean trimStackTraces) The test has succeeded.
-
Method Details
-
checkError
boolean checkError()- Returns:
true
if the encoder's stream has got an error
-
onJvmExit
void onJvmExit()Called on JVM exit error. -
testSetStarting
The test set has started.- Parameters:
reportEntry
- test set report entrytrimStackTraces
-true
if stack trace trimming
-
testSetCompleted
The test set has finished.- Parameters:
reportEntry
- test set report entrytrimStackTraces
-true
if stack trace trimming
-
testStarting
The test has started.- Parameters:
reportEntry
- test set report entrytrimStackTraces
-true
if stack trace trimming
-
testSucceeded
The test has succeeded.- Parameters:
reportEntry
- test set report entrytrimStackTraces
-true
if stack trace trimming
-
testFailed
The test has failed.- Parameters:
reportEntry
- test set report entrytrimStackTraces
-true
if stack trace trimming
-
testSkipped
The test is skipped.- Parameters:
reportEntry
- test set report entrytrimStackTraces
-true
if stack trace trimming
-
testError
The test error.- Parameters:
reportEntry
- test set report entrytrimStackTraces
-true
if stack trace trimming
-
testAssumptionFailure
The test assumption failure.- Parameters:
reportEntry
- test set report entrytrimStackTraces
-true
if stack trace trimming
-
testOutput
Test output, a line or characters.- Parameters:
reportEntry
- std/out or std/err context
-
consoleInfoLog
Info log.- Parameters:
msg
- message of info logger
-
consoleErrorLog
Error log.- Parameters:
msg
- message of error logger
-
consoleErrorLog
Error log.- Parameters:
t
- exception
-
consoleErrorLog
Error log.- Parameters:
msg
- additional error messaget
- exception
-
consoleErrorLog
Error log.- Parameters:
stackTraceWriter
- printable stack tracetrimStackTraces
-true
if selected trimmed stack trace to print into encoder channel/stream
-
consoleDebugLog
Debug log.- Parameters:
msg
- message of debug logger
-
consoleWarningLog
Warning log.- Parameters:
msg
- message of warning logger
-
bye
void bye()Say BYE on exit. ForkBooter will consequently wait for BYE_ACK command which finally drains the (std/in) sink channel. -
stopOnNextTest
void stopOnNextTest()The provider wants to stop the progress. -
acquireNextTest
void acquireNextTest()The provider acquires a new test set to run. -
sendExitError
ForkedBooter tear down has failed while waiting for BYE_ACK command.- Parameters:
stackTraceWriter
- printable stack tracetrimStackTraces
-true
if selected trimmed stack trace to print into encoder channel/stream
-