Package com.consol.citrus.report
Class OutputStreamReporter
- java.lang.Object
-
- com.consol.citrus.report.AbstractTestReporter
-
- com.consol.citrus.report.LoggingReporter
-
- com.consol.citrus.report.OutputStreamReporter
-
- All Implemented Interfaces:
com.consol.citrus.report.MessageListener
,com.consol.citrus.report.TestActionListener
,com.consol.citrus.report.TestListener
,com.consol.citrus.report.TestReporter
,com.consol.citrus.report.TestSuiteListener
public class OutputStreamReporter extends LoggingReporter
- Since:
- 2.7.4
- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description OutputStreamReporter(OutputStream logStream)
Default constructor using output stream.OutputStreamReporter(Writer logWriter)
Constructor using writer instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
debug(String line)
Write debug level output.protected void
error(String line, Throwable cause)
Write error level output.String
getFormat()
Gets the format.Writer
getLogWriter()
Gets the log writer.protected void
info(String line)
Write info level output.protected boolean
isDebugEnabled()
Is debug level enabled.void
setFormat(String format)
Sets the format.protected void
setLogWriter(Writer writer)
Sets the log writer.-
Methods inherited from class com.consol.citrus.report.LoggingReporter
generate, onFinish, onFinishFailure, onFinishSuccess, onInboundMessage, onOutboundMessage, onStart, onStartFailure, onStartSuccess, onTestActionFinish, onTestActionSkipped, onTestActionStart, onTestFailure, onTestFinish, onTestSkipped, onTestStart, onTestSuccess
-
Methods inherited from class com.consol.citrus.report.AbstractTestReporter
generateReport, getReportDirectory, isIgnoreErrors, setIgnoreErrors, setReportDirectory
-
-
-
-
Constructor Detail
-
OutputStreamReporter
public OutputStreamReporter(OutputStream logStream)
Default constructor using output stream.- Parameters:
logStream
-
-
OutputStreamReporter
public OutputStreamReporter(Writer logWriter)
Constructor using writer instances.- Parameters:
logWriter
-
-
-
Method Detail
-
info
protected void info(String line)
Description copied from class:LoggingReporter
Write info level output.- Overrides:
info
in classLoggingReporter
-
debug
protected void debug(String line)
Description copied from class:LoggingReporter
Write debug level output.- Overrides:
debug
in classLoggingReporter
-
error
protected void error(String line, Throwable cause)
Description copied from class:LoggingReporter
Write error level output.- Overrides:
error
in classLoggingReporter
-
isDebugEnabled
protected boolean isDebugEnabled()
Description copied from class:LoggingReporter
Is debug level enabled.- Overrides:
isDebugEnabled
in classLoggingReporter
- Returns:
-
getFormat
public String getFormat()
Gets the format.- Returns:
-
setFormat
public void setFormat(String format)
Sets the format.- Parameters:
format
-
-
getLogWriter
public Writer getLogWriter()
Gets the log writer.- Returns:
-
setLogWriter
protected void setLogWriter(Writer writer)
Sets the log writer.- Parameters:
writer
-
-
-