Class TestOutputReportEntry
- java.lang.Object
-
- org.apache.maven.surefire.api.report.TestOutputReportEntry
-
- All Implemented Interfaces:
OutputReportEntry
public final class TestOutputReportEntry extends Object implements OutputReportEntry
This report entry should be used inTestOutputReceiver.writeTestOutput(OutputReportEntry)
.
-
-
Constructor Summary
Constructors Constructor Description TestOutputReportEntry(String log, boolean isStdOut, boolean newLine, RunMode runMode, Long testRunId)
Wraps the output from the running test-case.TestOutputReportEntry(OutputReportEntry reportEntry, RunMode runMode, Long testRunId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLog()
RunMode
getRunMode()
Long
getTestRunId()
boolean
isNewLine()
boolean
isStdOut()
static TestOutputReportEntry
stdErr(String log)
static TestOutputReportEntry
stdErrln(String log)
static OutputReportEntry
stdOut(String log)
static TestOutputReportEntry
stdOutln(String log)
-
-
-
Constructor Detail
-
TestOutputReportEntry
public TestOutputReportEntry(String log, boolean isStdOut, boolean newLine, RunMode runMode, 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
public TestOutputReportEntry(OutputReportEntry reportEntry, RunMode runMode, Long testRunId)
-
-
Method Detail
-
getLog
public 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 Long getTestRunId()
-
stdOut
public static OutputReportEntry stdOut(String log)
-
stdOutln
public static TestOutputReportEntry stdOutln(String log)
-
stdErr
public static TestOutputReportEntry stdErr(String log)
-
stdErrln
public static TestOutputReportEntry stdErrln(String log)
-
-