Package org.apache.maven.surefire.report
Class SimpleReportEntry
java.lang.Object
org.apache.maven.surefire.report.SimpleReportEntry
- All Implemented Interfaces:
ReportEntry,TestSetReportEntry
- Direct Known Subclasses:
CategorizedReportEntry
- Author:
- Kristian Rosenvold
-
Constructor Summary
ConstructorsModifierConstructorDescriptionSimpleReportEntry(String source, String name) SimpleReportEntry(String source, String name, Integer elapsed) SimpleReportEntry(String source, String name, String message) SimpleReportEntry(String source, String name, StackTraceWriter stackTraceWriter, Integer elapsed) protectedSimpleReportEntry(String source, String name, StackTraceWriter stackTraceWriter, Integer elapsed, String message, Map<String, String> systemProperties) SimpleReportEntry(String source, String name, StackTraceWriter stackTraceWriter, Integer elapsed, Map<String, String> systemProperties) -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleReportEntryassumption(String source, String name, String message) booleanGets the runtime for the item.getGroup()The group/category of the testcaseA message relating to a non-successful termination.getName()The name of the test caseA name of the test case together with the group or category (if any exists).The class name of the testThe group/category of the testcaseinthashCode()static SimpleReportEntrytoString()static SimpleReportEntrywithException(String source, String name, StackTraceWriter stackTraceWriter)
-
Constructor Details
-
SimpleReportEntry
public SimpleReportEntry() -
SimpleReportEntry
-
SimpleReportEntry
-
SimpleReportEntry
-
SimpleReportEntry
-
SimpleReportEntry
-
SimpleReportEntry
public SimpleReportEntry(String source, String name, StackTraceWriter stackTraceWriter, Integer elapsed) -
SimpleReportEntry
-
-
Method Details
-
assumption
-
ignored
-
withException
public static SimpleReportEntry withException(String source, String name, StackTraceWriter stackTraceWriter) -
getSourceName
Description copied from interface:ReportEntryThe class name of the test- Specified by:
getSourceNamein interfaceReportEntry- Returns:
- A string with the class name
-
getName
Description copied from interface:ReportEntryThe name of the test case- Specified by:
getNamein interfaceReportEntry- Returns:
- A string describing the test case
-
getGroup
Description copied from interface:ReportEntryThe group/category of the testcase- Specified by:
getGroupin interfaceReportEntry- Returns:
- A string
-
getStackTraceWriter
Description copied from interface:ReportEntryThe group/category of the testcase- Specified by:
getStackTraceWriterin interfaceReportEntry- Returns:
- A string
-
getElapsed
Description copied from interface:ReportEntryGets 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:
getElapsedin interfaceReportEntry- Returns:
- duration of a test in milli seconds
-
toString
-
getMessage
Description copied from interface:ReportEntryA message relating to a non-successful termination. May be the "message" from an exception or the reason for a test being ignored- Specified by:
getMessagein interfaceReportEntry- Returns:
- A string that explains an anomaly
-
equals
-
hashCode
public int hashCode() -
getNameWithGroup
Description copied from interface:ReportEntryA name of the test case together with the group or category (if any exists).- Specified by:
getNameWithGroupin interfaceReportEntry- Returns:
- A string with the test case name and group/category, or just the name.
-
getSystemProperties
- Specified by:
getSystemPropertiesin interfaceTestSetReportEntry
-