Class WrappedReportEntry
- java.lang.Object
-
- org.apache.maven.plugin.surefire.report.WrappedReportEntry
-
- All Implemented Interfaces:
ReportEntry
,TestSetReportEntry
public class WrappedReportEntry extends java.lang.Object implements TestSetReportEntry
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Integer
elapsed
private ReportEntry
original
private ReportEntryType
reportEntryType
private Utf8RecodingDeferredFileOutputStream
stdErr
private Utf8RecodingDeferredFileOutputStream
stdout
private java.util.Map<java.lang.String,java.lang.String>
systemProperties
-
Constructor Summary
Constructors Constructor Description WrappedReportEntry(ReportEntry original, ReportEntryType reportEntryType, java.lang.Integer estimatedElapsed, Utf8RecodingDeferredFileOutputStream stdout, Utf8RecodingDeferredFileOutputStream stdErr)
WrappedReportEntry(ReportEntry original, ReportEntryType reportEntryType, java.lang.Integer estimatedElapsed, Utf8RecodingDeferredFileOutputStream stdout, Utf8RecodingDeferredFileOutputStream stdErr, java.util.Map<java.lang.String,java.lang.String> systemProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
elapsedTimeAsString()
java.lang.String
getClassMethodName()
java.lang.Integer
getElapsed()
Gets the runtime for the item.java.lang.String
getElapsedTimeSummary()
java.lang.String
getElapsedTimeVerbose()
java.lang.String
getGroup()
The group/category of the testcasejava.lang.String
getMessage()
A message relating to a non-successful termination.java.lang.String
getName()
The name of the test casejava.lang.String
getNameWithGroup()
A name of the test case together with the group or category (if any exists).java.lang.String
getOutput(boolean trimStackTrace)
ReportEntryType
getReportEntryType()
java.lang.String
getReportName()
java.lang.String
getReportName(java.lang.String suffix)
java.lang.String
getSourceName()
The class name of the testjava.lang.String
getStackTrace(boolean trimStackTrace)
StackTraceWriter
getStackTraceWriter()
The group/category of the testcaseUtf8RecodingDeferredFileOutputStream
getStdErr()
Utf8RecodingDeferredFileOutputStream
getStdout()
java.util.Map<java.lang.String,java.lang.String>
getSystemProperties()
boolean
isErrorOrFailure()
boolean
isSkipped()
boolean
isSucceeded()
-
-
-
Field Detail
-
original
private final ReportEntry original
-
reportEntryType
private final ReportEntryType reportEntryType
-
elapsed
private final java.lang.Integer elapsed
-
stdout
private final Utf8RecodingDeferredFileOutputStream stdout
-
stdErr
private final Utf8RecodingDeferredFileOutputStream stdErr
-
systemProperties
private final java.util.Map<java.lang.String,java.lang.String> systemProperties
-
-
Constructor Detail
-
WrappedReportEntry
public WrappedReportEntry(ReportEntry original, ReportEntryType reportEntryType, java.lang.Integer estimatedElapsed, Utf8RecodingDeferredFileOutputStream stdout, Utf8RecodingDeferredFileOutputStream stdErr, java.util.Map<java.lang.String,java.lang.String> systemProperties)
-
WrappedReportEntry
public WrappedReportEntry(ReportEntry original, ReportEntryType reportEntryType, java.lang.Integer estimatedElapsed, Utf8RecodingDeferredFileOutputStream stdout, Utf8RecodingDeferredFileOutputStream stdErr)
-
-
Method Detail
-
getElapsed
public java.lang.Integer 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
-
getReportEntryType
public ReportEntryType getReportEntryType()
-
getStdout
public Utf8RecodingDeferredFileOutputStream getStdout()
-
getStdErr
public Utf8RecodingDeferredFileOutputStream getStdErr()
-
getSourceName
public java.lang.String getSourceName()
Description copied from interface:ReportEntry
The class name of the test- Specified by:
getSourceName
in interfaceReportEntry
- Returns:
- A string with the class name
-
getName
public java.lang.String getName()
Description copied from interface:ReportEntry
The name of the test case- Specified by:
getName
in interfaceReportEntry
- Returns:
- A string describing the test case
-
getClassMethodName
public java.lang.String getClassMethodName()
-
getGroup
public java.lang.String getGroup()
Description copied from interface:ReportEntry
The group/category of the testcase- Specified by:
getGroup
in interfaceReportEntry
- Returns:
- A string
-
getStackTraceWriter
public StackTraceWriter getStackTraceWriter()
Description copied from interface:ReportEntry
The group/category of the testcase- Specified by:
getStackTraceWriter
in interfaceReportEntry
- Returns:
- A string
-
getMessage
public java.lang.String 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
public java.lang.String getStackTrace(boolean trimStackTrace)
-
elapsedTimeAsString
public java.lang.String elapsedTimeAsString()
-
getReportName
public java.lang.String getReportName()
-
getReportName
public java.lang.String getReportName(java.lang.String suffix)
-
getOutput
public java.lang.String getOutput(boolean trimStackTrace)
-
getElapsedTimeVerbose
public java.lang.String getElapsedTimeVerbose()
-
getElapsedTimeSummary
public java.lang.String getElapsedTimeSummary()
-
isErrorOrFailure
public boolean isErrorOrFailure()
-
isSkipped
public boolean isSkipped()
-
isSucceeded
public boolean isSucceeded()
-
getNameWithGroup
public java.lang.String getNameWithGroup()
Description copied from interface:ReportEntry
A 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.
-
getSystemProperties
public java.util.Map<java.lang.String,java.lang.String> getSystemProperties()
- Specified by:
getSystemProperties
in interfaceTestSetReportEntry
-
-