public class SimpleReportEntry extends Object implements TestSetReportEntry
Constructor and Description |
---|
SimpleReportEntry(String source,
String sourceText,
String name,
String nameText) |
SimpleReportEntry(String source,
String sourceText,
String name,
String nameText,
Integer elapsed) |
SimpleReportEntry(String source,
String sourceText,
String name,
String nameText,
Map<String,String> systemProperties) |
SimpleReportEntry(String source,
String sourceText,
String name,
String nameText,
StackTraceWriter stackTraceWriter,
Integer elapsed) |
SimpleReportEntry(String source,
String sourceText,
String name,
String nameText,
StackTraceWriter stackTraceWriter,
Integer elapsed,
Map<String,String> systemProperties) |
SimpleReportEntry(String source,
String sourceText,
String name,
String nameText,
StackTraceWriter stackTraceWriter,
Integer elapsed,
String message,
Map<String,String> systemProperties) |
SimpleReportEntry(String source,
String sourceText,
String name,
String nameText,
String message) |
Modifier and Type | Method and Description |
---|---|
static SimpleReportEntry |
assumption(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)
Returns same value as
ReportEntry.getElapsed() and fallbacks to fallback for null elapsed timed. |
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).
|
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() |
int |
hashCode() |
static SimpleReportEntry |
ignored(String source,
String sourceText,
String name,
String nameText,
String message) |
String |
toString() |
static SimpleReportEntry |
withException(String source,
String sourceText,
String name,
String nameText,
StackTraceWriter stackTraceWriter) |
public SimpleReportEntry(String source, String sourceText, String name, String nameText)
public SimpleReportEntry(String source, String sourceText, String name, String nameText, Map<String,String> systemProperties)
public SimpleReportEntry(String source, String sourceText, String name, String nameText, Integer elapsed)
public SimpleReportEntry(String source, String sourceText, String name, String nameText, String message)
public SimpleReportEntry(String source, String sourceText, String name, String nameText, StackTraceWriter stackTraceWriter, Integer elapsed, String message, Map<String,String> systemProperties)
public SimpleReportEntry(String source, String sourceText, String name, String nameText, StackTraceWriter stackTraceWriter, Integer elapsed)
public static SimpleReportEntry assumption(String source, String sourceText, String name, String nameText, String message)
public static SimpleReportEntry ignored(String source, String sourceText, String name, String nameText, String message)
public static SimpleReportEntry withException(String source, String sourceText, String name, String nameText, StackTraceWriter stackTraceWriter)
public String getSourceName()
ReportEntry
getSourceName
in interface ReportEntry
public String getSourceText()
ReportEntry
test class
.getSourceText
in interface ReportEntry
public String getName()
ReportEntry
getName
in interface ReportEntry
public String getNameText()
ReportEntry
test case
.getNameText
in interface ReportEntry
public String getGroup()
ReportEntry
getGroup
in interface ReportEntry
public StackTraceWriter getStackTraceWriter()
ReportEntry
getStackTraceWriter
in interface ReportEntry
public Integer getElapsed()
ReportEntry
getElapsed
in interface ReportEntry
public int getElapsed(int fallback)
ReportEntry
ReportEntry.getElapsed()
and fallbacks to fallback
for null elapsed timed.getElapsed
in interface ReportEntry
fallback
- usually 0ReportEntry.getElapsed()
is not null; otherwise returns fallback
public String getMessage()
ReportEntry
getMessage
in interface ReportEntry
public String getNameWithGroup()
ReportEntry
getNameWithGroup
in interface ReportEntry
public String getReportNameWithGroup()
ReportEntry
getReportNameWithGroup
in interface ReportEntry
public Map<String,String> getSystemProperties()
getSystemProperties
in interface TestSetReportEntry
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.