Package org.apache.maven.surefire.report
Interface ReportEntry
-
- All Known Subinterfaces:
TestSetReportEntry
- All Known Implementing Classes:
CategorizedReportEntry,SimpleReportEntry,WrappedReportEntry
public interface ReportEntryDescribes a single entry for a test report
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.IntegergetElapsed()Gets the runtime for the item.java.lang.StringgetGroup()The group/category of the testcasejava.lang.StringgetMessage()A message relating to a non-successful termination.java.lang.StringgetName()The name of the test casejava.lang.StringgetNameWithGroup()A name of the test case together with the group or category (if any exists).java.lang.StringgetSourceName()The class name of the testStackTraceWritergetStackTraceWriter()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
-
getName
java.lang.String getName()
The name of the test case- Returns:
- A string describing the test case
-
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
-
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 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.
-
-