Package org.apache.maven.surefire.report
Interface ReportEntry
-
- All Known Subinterfaces:
TestSetReportEntry
- All Known Implementing Classes:
CategorizedReportEntry
,SimpleReportEntry
,WrappedReportEntry
public interface ReportEntry
Describes a single entry for a test report
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Integer
getElapsed()
Gets the runtime for the item.int
getElapsed(int fallback)
Returns same value asgetElapsed()
and fallbacks tofallback
for null elapsed timed.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
getNameText()
Human readabletest case
.java.lang.String
getNameWithGroup()
A source name of the test case together with the group or category (if any exists).java.lang.String
getReportNameWithGroup()
A source text of the test case together with the group or category (if any exists).java.lang.String
getSourceName()
The class name of the testjava.lang.String
getSourceText()
Human readabletest class
.StackTraceWriter
getStackTraceWriter()
The group/category of the testcase
-
-
-
Method Detail
-
getSourceName
java.lang.String getSourceName()
The class name of the test- Returns:
- A string with the class name
-
getSourceText
java.lang.String getSourceText()
Human readabletest class
.- Returns:
- source text
-
getName
java.lang.String getName()
The name of the test case- Returns:
- A string describing the test case
-
getNameText
java.lang.String getNameText()
Human readabletest case
.- Returns:
- name text
-
getGroup
java.lang.String getGroup()
The group/category of the testcase- Returns:
- A string
-
getStackTraceWriter
StackTraceWriter getStackTraceWriter()
The group/category of the testcase- Returns:
- A string
-
getElapsed
java.lang.Integer getElapsed()
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.- Returns:
- duration of a test in milli seconds
-
getElapsed
int getElapsed(int fallback)
Returns same value asgetElapsed()
and fallbacks tofallback
for null elapsed timed.- Parameters:
fallback
- usually 0- Returns:
- elapsed time if
getElapsed()
is not null; otherwise returnsfallback
-
getMessage
java.lang.String getMessage()
A message relating to a non-successful termination. May be the "message" from an exception or the reason for a test being ignored- Returns:
- A string that explains an anomaly
-
getNameWithGroup
java.lang.String getNameWithGroup()
A source name of the test case together with the group or category (if any exists).- Returns:
- A string with the test case name and group/category, or just the name.
-
getReportNameWithGroup
java.lang.String getReportNameWithGroup()
A source text of the test case together with the group or category (if any exists).- Returns:
- A string with the test case text and group/category, or just the source text.
-
-