Class TestOutputReportEntry
- java.lang.Object
-
- org.apache.maven.surefire.api.report.TestOutputReportEntry
-
- All Implemented Interfaces:
OutputReportEntry
public final class TestOutputReportEntry extends java.lang.Object implements OutputReportEntry
This report entry should be used inTestOutputReceiver.writeTestOutput(OutputReportEntry)
.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
TestOutputReportEntry(java.lang.String log, boolean isStdOut, boolean newLine)
Wraps the output from the running test-case.TestOutputReportEntry(java.lang.String log, boolean isStdOut, boolean newLine, RunMode runMode, java.lang.Long testRunId)
Wraps the output from the running test-case.TestOutputReportEntry(OutputReportEntry reportEntry, RunMode runMode, java.lang.Long testRunId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLog()
RunMode
getRunMode()
java.lang.Long
getTestRunId()
boolean
isNewLine()
boolean
isStdOut()
static TestOutputReportEntry
stdErr(java.lang.String log)
static TestOutputReportEntry
stdErrln(java.lang.String log)
static OutputReportEntry
stdOut(java.lang.String log)
static TestOutputReportEntry
stdOutln(java.lang.String log)
-
-
-
Field Detail
-
log
private final java.lang.String log
-
isStdOut
private final boolean isStdOut
-
newLine
private final boolean newLine
-
runMode
private final RunMode runMode
-
testRunId
private final java.lang.Long testRunId
-
-
Constructor Detail
-
TestOutputReportEntry
public TestOutputReportEntry(java.lang.String log, boolean isStdOut, boolean newLine, RunMode runMode, java.lang.Long testRunId)
Wraps the output from the running test-case.- Parameters:
log
- stdout/sterr output from running testsisStdOut
- Indicates if this is stdoutnewLine
- print on new linerunMode
- the phase of testsettestRunId
- unique id of the test run pointing to the test description
-
TestOutputReportEntry
private TestOutputReportEntry(java.lang.String log, boolean isStdOut, boolean newLine)
Wraps the output from the running test-case.- Parameters:
log
- stdout/sterr output from running testsisStdOut
- Indicates if this is stdoutnewLine
- print on new line
-
TestOutputReportEntry
public TestOutputReportEntry(OutputReportEntry reportEntry, RunMode runMode, java.lang.Long testRunId)
-
-
Method Detail
-
getLog
public java.lang.String getLog()
- Specified by:
getLog
in interfaceOutputReportEntry
-
isStdOut
public boolean isStdOut()
- Specified by:
isStdOut
in interfaceOutputReportEntry
-
isNewLine
public boolean isNewLine()
- Specified by:
isNewLine
in interfaceOutputReportEntry
-
getRunMode
public RunMode getRunMode()
-
getTestRunId
public java.lang.Long getTestRunId()
-
stdOut
public static OutputReportEntry stdOut(java.lang.String log)
-
stdOutln
public static TestOutputReportEntry stdOutln(java.lang.String log)
-
stdErr
public static TestOutputReportEntry stdErr(java.lang.String log)
-
stdErrln
public static TestOutputReportEntry stdErrln(java.lang.String log)
-
-