Class CategorizedReportEntry
- java.lang.Object
-
- org.apache.maven.surefire.api.report.SimpleReportEntry
-
- org.apache.maven.surefire.api.report.CategorizedReportEntry
-
- All Implemented Interfaces:
ReportEntry
,TestSetReportEntry
public class CategorizedReportEntry extends SimpleReportEntry
- Author:
- Kristian Rosenvold
-
-
Field Summary
Fields Modifier and Type Field Description static String
GROUP_PREFIX
-
Constructor Summary
Constructors Constructor Description CategorizedReportEntry(RunMode runMode, Long testRunId, String source, String name, String group)
CategorizedReportEntry(RunMode runMode, Long testRunId, String source, String sourceText, String name, String nameText, String group, StackTraceWriter stackTraceWriter, Integer elapsed, String message, Map<String,String> systemProperties)
CategorizedReportEntry(RunMode runMode, Long testRunId, String source, String name, String group, StackTraceWriter stackTraceWriter, Integer elapsed)
CategorizedReportEntry(RunMode runMode, Long testRunId, String source, String name, String group, StackTraceWriter stackTraceWriter, Integer elapsed, String message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getGroup()
The group/category of the testcaseString
getNameWithGroup()
A source name of the test case together with the group or category (if any exists).String
getReportNameWithGroup()
A source text of the test case together with the group or category (if any exists).int
hashCode()
static TestSetReportEntry
reportEntry(RunMode runMode, Long testRunId, String source, String sourceText, String name, String nameText, String group, StackTraceWriter stackTraceWriter, Integer elapsed, String message, Map<String,String> systemProperties)
-
Methods inherited from class org.apache.maven.surefire.api.report.SimpleReportEntry
assumption, getElapsed, getElapsed, getMessage, getName, getNameText, getRunMode, getSourceName, getSourceText, getStackTraceWriter, getSystemProperties, getTestRunId, ignored, toString, withException
-
-
-
-
Field Detail
-
GROUP_PREFIX
public static final String GROUP_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CategorizedReportEntry
public CategorizedReportEntry(@Nonnull RunMode runMode, @Nonnegative Long testRunId, String source, String name, String group)
-
CategorizedReportEntry
public CategorizedReportEntry(@Nonnull RunMode runMode, @Nonnegative Long testRunId, String source, String name, String group, StackTraceWriter stackTraceWriter, Integer elapsed)
-
CategorizedReportEntry
public CategorizedReportEntry(@Nonnull RunMode runMode, @Nonnegative Long testRunId, String source, String name, String group, StackTraceWriter stackTraceWriter, Integer elapsed, String message)
-
-
Method Detail
-
reportEntry
public static TestSetReportEntry reportEntry(@Nonnull RunMode runMode, @Nonnegative Long testRunId, String source, String sourceText, String name, String nameText, String group, StackTraceWriter stackTraceWriter, Integer elapsed, String message, Map<String,String> systemProperties)
-
getGroup
public String getGroup()
Description copied from interface:ReportEntry
The group/category of the testcase- Specified by:
getGroup
in interfaceReportEntry
- Overrides:
getGroup
in classSimpleReportEntry
- Returns:
- A string
-
getNameWithGroup
public String 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
- Overrides:
getNameWithGroup
in classSimpleReportEntry
- Returns:
- A string with the test case name and group/category, or just the name.
-
getReportNameWithGroup
public String 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
- Overrides:
getReportNameWithGroup
in classSimpleReportEntry
- Returns:
- A string with the test case text and group/category, or just the source text. If no source text is provided, then this will return null.
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classSimpleReportEntry
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSimpleReportEntry
-
-