Class WrappedReportEntry
java.lang.Object
org.apache.maven.plugin.surefire.report.WrappedReportEntry
- All Implemented Interfaces:
ReportEntry
,TestSetReportEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Integer
private final ReportEntry
private final ReportEntryType
private final Utf8RecodingDeferredFileOutputStream
private final Utf8RecodingDeferredFileOutputStream
-
Constructor Summary
ConstructorsConstructorDescriptionWrappedReportEntry
(ReportEntry original, ReportEntryType reportEntryType, Integer estimatedElapsed, Utf8RecodingDeferredFileOutputStream stdout, Utf8RecodingDeferredFileOutputStream stdErr) WrappedReportEntry
(ReportEntry original, ReportEntryType reportEntryType, Integer estimatedElapsed, Utf8RecodingDeferredFileOutputStream stdout, Utf8RecodingDeferredFileOutputStream stdErr, Map<String, String> systemProperties) -
Method Summary
Modifier and TypeMethodDescriptionGets the runtime for the item.int
getElapsed
(int fallback) getGroup()
The group/category of the testcaseA message relating to a non-successful termination.getName()
The name of the test caseHuman readabletest case
.A source name of the test case together with the group or category (if any exists).getOutput
(boolean trimStackTrace) (package private) String
A source text of the test case together with the group or category (if any exists).(package private) String
(package private) String
getReportSourceName
(String suffix) Run mode.The class name of the test(package private) String
getSourceName
(String suffix) Human readabletest class
.getStackTrace
(boolean trimStackTrace) The group/category of the testcaseThis represents a reference pointing to a literal representation of test description or literal unique id.boolean
boolean
boolean
-
Field Details
-
original
-
reportEntryType
-
elapsed
-
stdout
-
stdErr
-
systemProperties
-
-
Constructor Details
-
WrappedReportEntry
public WrappedReportEntry(ReportEntry original, ReportEntryType reportEntryType, Integer estimatedElapsed, Utf8RecodingDeferredFileOutputStream stdout, Utf8RecodingDeferredFileOutputStream stdErr, Map<String, String> systemProperties) -
WrappedReportEntry
public WrappedReportEntry(ReportEntry original, ReportEntryType reportEntryType, Integer estimatedElapsed, Utf8RecodingDeferredFileOutputStream stdout, Utf8RecodingDeferredFileOutputStream stdErr)
-
-
Method Details
-
getElapsed
Description copied from interface:ReportEntry
Gets the runtime for the item. Optional parameter. If the value is not set, it will be determined within the reporting subsystem. Some providers like to calculate this value themselves, and it gets the most accurate value.- Specified by:
getElapsed
in interfaceReportEntry
- Returns:
- duration of a test in milli seconds
-
getElapsed
public int getElapsed(int fallback) Description copied from interface:ReportEntry
- Specified by:
getElapsed
in interfaceReportEntry
- Parameters:
fallback
- usually 0- Returns:
- elapsed time if
ReportEntry.getElapsed()
is not null; otherwise returnsfallback
-
getReportEntryType
-
getStdout
-
getStdErr
-
getSourceName
Description copied from interface:ReportEntry
The class name of the test- Specified by:
getSourceName
in interfaceReportEntry
- Returns:
- A string with the class name
-
getSourceText
Description copied from interface:ReportEntry
Human readabletest class
.- Specified by:
getSourceText
in interfaceReportEntry
- Returns:
- source text
-
getName
Description copied from interface:ReportEntry
The name of the test case- Specified by:
getName
in interfaceReportEntry
- Returns:
- A string describing the test case
-
getNameText
Description copied from interface:ReportEntry
Human readabletest case
.- Specified by:
getNameText
in interfaceReportEntry
- Returns:
- name text
-
getClassMethodName
-
getGroup
Description copied from interface:ReportEntry
The group/category of the testcase- Specified by:
getGroup
in interfaceReportEntry
- Returns:
- A string
-
getStackTraceWriter
Description copied from interface:ReportEntry
The group/category of the testcase- Specified by:
getStackTraceWriter
in interfaceReportEntry
- Returns:
- stack trace object
-
getMessage
Description copied from interface:ReportEntry
A message relating to a non-successful termination. May be the "message" from an exception or the reason for a test being ignored- Specified by:
getMessage
in interfaceReportEntry
- Returns:
- A string that explains an anomaly
-
getStackTrace
-
elapsedTimeAsString
-
getReportSourceName
String getReportSourceName() -
getReportSourceName
-
getSourceName
-
getReportName
String getReportName() -
getOutput
-
getElapsedTimeVerbose
-
getElapsedTimeSummary
-
isErrorOrFailure
public boolean isErrorOrFailure() -
isSkipped
public boolean isSkipped() -
isSucceeded
public boolean isSucceeded() -
getNameWithGroup
Description copied from interface:ReportEntry
A source name of the test case together with the group or category (if any exists).- Specified by:
getNameWithGroup
in interfaceReportEntry
- Returns:
- A string with the test case name and group/category, or just the name.
-
getReportNameWithGroup
Description copied from interface:ReportEntry
A source text of the test case together with the group or category (if any exists).- Specified by:
getReportNameWithGroup
in interfaceReportEntry
- Returns:
- A string with the test case text and group/category, or just the source text.
-
getRunMode
Description copied from interface:ReportEntry
Run mode.- Specified by:
getRunMode
in interfaceReportEntry
- Returns:
- a normal run, or re-run.
-
getTestRunId
Description copied from interface:ReportEntry
This represents a reference pointing to a literal representation of test description or literal unique id.- Specified by:
getTestRunId
in interfaceReportEntry
- Returns:
- id
-
getSystemProperties
- Specified by:
getSystemProperties
in interfaceTestSetReportEntry
-