public class SimpleReportEntry extends Object implements TestSetReportEntry
TestSetReportEntry (immutable and thread-safe object).| Constructor and Description |
|---|
SimpleReportEntry(RunMode runMode,
Long testRunId,
String source,
String sourceText,
String name,
String nameText) |
SimpleReportEntry(RunMode runMode,
Long testRunId,
String source,
String sourceText,
String name,
String nameText,
Integer elapsed) |
SimpleReportEntry(RunMode runMode,
Long testRunId,
String source,
String sourceText,
String name,
String nameText,
Map<String,String> systemProperties) |
SimpleReportEntry(RunMode runMode,
Long testRunId,
String source,
String sourceText,
String name,
String nameText,
StackTraceWriter stackTraceWriter,
Integer elapsed) |
SimpleReportEntry(RunMode runMode,
Long testRunId,
String source,
String sourceText,
String name,
String nameText,
StackTraceWriter stackTraceWriter,
Integer elapsed,
Map<String,String> systemProperties) |
SimpleReportEntry(RunMode runMode,
Long testRunId,
String source,
String sourceText,
String name,
String nameText,
StackTraceWriter stackTraceWriter,
Integer elapsed,
String message,
Map<String,String> systemProperties) |
SimpleReportEntry(RunMode runMode,
Long testRunId,
String source,
String sourceText,
String name,
String nameText,
String message) |
| Modifier and Type | Method and Description |
|---|---|
static SimpleReportEntry |
assumption(RunMode runMode,
Long testRunId,
String source,
String sourceText,
String name,
String nameText,
String message) |
boolean |
equals(Object o) |
Integer |
getElapsed()
Gets the runtime for the item.
|
int |
getElapsed(int fallback)
|
String |
getGroup()
The group/category of the testcase
|
String |
getMessage()
A message relating to a non-successful termination.
|
String |
getName()
The name of the test case
|
String |
getNameText()
Human readable
test case. |
String |
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).
|
RunMode |
getRunMode()
Run mode.
|
String |
getSourceName()
The class name of the test
|
String |
getSourceText()
Human readable
test class. |
StackTraceWriter |
getStackTraceWriter()
The group/category of the testcase
|
Map<String,String> |
getSystemProperties() |
Long |
getTestRunId()
This represents a reference pointing to a literal representation of test description or literal unique id.
|
int |
hashCode() |
static SimpleReportEntry |
ignored(RunMode runMode,
Long testRunId,
String source,
String sourceText,
String name,
String nameText,
String message) |
String |
toString() |
static SimpleReportEntry |
withException(RunMode runMode,
Long testRunId,
String source,
String sourceText,
String name,
String nameText,
StackTraceWriter stackTraceWriter) |
public SimpleReportEntry(@Nonnull RunMode runMode, Long testRunId, String source, String sourceText, String name, String nameText)
public SimpleReportEntry(@Nonnull RunMode runMode, Long testRunId, String source, String sourceText, String name, String nameText, Map<String,String> systemProperties)
public SimpleReportEntry(@Nonnull RunMode runMode, Long testRunId, String source, String sourceText, String name, String nameText, Integer elapsed)
public SimpleReportEntry(@Nonnull RunMode runMode, Long testRunId, String source, String sourceText, String name, String nameText, String message)
public SimpleReportEntry(@Nonnull RunMode runMode, Long testRunId, String source, String sourceText, String name, String nameText, StackTraceWriter stackTraceWriter, Integer elapsed, String message, Map<String,String> systemProperties)
public SimpleReportEntry(@Nonnull RunMode runMode, Long testRunId, String source, String sourceText, String name, String nameText, StackTraceWriter stackTraceWriter, Integer elapsed)
public static SimpleReportEntry assumption(RunMode runMode, Long testRunId, String source, String sourceText, String name, String nameText, String message)
public static SimpleReportEntry ignored(RunMode runMode, Long testRunId, String source, String sourceText, String name, String nameText, String message)
public static SimpleReportEntry withException(RunMode runMode, Long testRunId, String source, String sourceText, String name, String nameText, StackTraceWriter stackTraceWriter)
public String getSourceName()
ReportEntrygetSourceName in interface ReportEntrypublic String getSourceText()
ReportEntrytest class.getSourceText in interface ReportEntrypublic String getName()
ReportEntrygetName in interface ReportEntrypublic String getNameText()
ReportEntrytest case.getNameText in interface ReportEntrypublic String getGroup()
ReportEntrygetGroup in interface ReportEntrypublic StackTraceWriter getStackTraceWriter()
ReportEntrygetStackTraceWriter in interface ReportEntrypublic Integer getElapsed()
ReportEntrygetElapsed in interface ReportEntrypublic int getElapsed(int fallback)
ReportEntrygetElapsed in interface ReportEntryfallback - usually 0ReportEntry.getElapsed() is not null; otherwise returns fallbackpublic String getMessage()
ReportEntrygetMessage in interface ReportEntrypublic String getNameWithGroup()
ReportEntrygetNameWithGroup in interface ReportEntrypublic String getReportNameWithGroup()
ReportEntrygetReportNameWithGroup in interface ReportEntry@Nonnull public final RunMode getRunMode()
ReportEntrygetRunMode in interface ReportEntrypublic final Long getTestRunId()
ReportEntrygetTestRunId in interface ReportEntrypublic Map<String,String> getSystemProperties()
getSystemProperties in interface TestSetReportEntryCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.