Class TestOutputReportEntry
java.lang.Object
org.apache.maven.surefire.api.report.TestOutputReportEntry
- All Implemented Interfaces:
OutputReportEntry
This report entry should be used in
TestOutputReceiver.writeTestOutput(OutputReportEntry).
-
Constructor Summary
ConstructorsConstructorDescriptionTestOutputReportEntry(String log, boolean isStdOut, boolean newLine, RunMode runMode, Long testRunId) Wraps the output from the running test-case.TestOutputReportEntry(String log, boolean isStdOut, boolean newLine, RunMode runMode, Long testRunId, String stack) Constructor used when receiving output from a forked JVM where the stack trace was captured on the forked side.TestOutputReportEntry(OutputReportEntry reportEntry, RunMode runMode, Long testRunId) -
Method Summary
Modifier and TypeMethodDescriptiongetLog()getStack()The stack trace of the thread that produced the output.booleanbooleanisStdOut()static TestOutputReportEntrystatic TestOutputReportEntrystatic OutputReportEntrystatic TestOutputReportEntry
-
Constructor Details
-
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
-
TestOutputReportEntry
public TestOutputReportEntry(String log, boolean isStdOut, boolean newLine, RunMode runMode, Long testRunId, String stack) Constructor used when receiving output from a forked JVM where the stack trace was captured on the forked side.- Parameters:
log- stdout/stderr outputisStdOut- true if stdoutnewLine- true if newlinerunMode- the run modetestRunId- the test run idstack- the stack trace captured on the forked JVM side
-
-
Method Details
-
getLog
- Specified by:
getLogin interfaceOutputReportEntry
-
isStdOut
public boolean isStdOut()- Specified by:
isStdOutin interfaceOutputReportEntry
-
isNewLine
public boolean isNewLine()- Specified by:
isNewLinein interfaceOutputReportEntry
-
getRunMode
-
getTestRunId
-
getStack
Description copied from interface:OutputReportEntryThe stack trace of the thread that produced the output. claasName#method;className#method;...- Specified by:
getStackin interfaceOutputReportEntry
-
stdOut
-
stdOutln
-
stdErr
-
stdErrln
-