public class TestResults extends Object implements Serializable, Comparable<TestResults>
Constructor and Description |
---|
TestResults() |
TestResults(String className,
String methodName,
String duration)
Create a new test
|
Modifier and Type | Method and Description |
---|---|
void |
addError(TestCaseResultError error)
Add an error to the test
|
int |
compareTo(TestResults o) |
boolean |
equals(Object o) |
String |
getActualMethodName()
Returns the actual method name without the pretty spaces
|
String |
getClassName()
The name of the class
|
String |
getDuration()
How long did the test take to execute?
|
double |
getDurationInSeconds() |
List<TestCaseResultError> |
getErrors()
How many errors does the test have.
|
String |
getMethodName()
Returns a sentence describing the test, derived from the method name of the test.
|
String |
getPrettyDuration() |
String |
getShortClassName()
The short name of the class
|
TestState |
getState() |
String |
getSystemOut() |
long |
getTestCaseId() |
boolean |
hasErrors() |
int |
hashCode() |
void |
setState(TestState state) |
void |
setSystemOut(String systemOut) |
void |
setTestCaseId(long testCaseId) |
String |
toString() |
public String getActualMethodName()
public String getMethodName()
Returns a sentence describing the test, derived from the method name of the test.
public String getClassName()
public String getShortClassName()
public String getDuration()
public void addError(TestCaseResultError error)
error
- a new errorpublic List<TestCaseResultError> getErrors()
public void setSystemOut(String systemOut)
public String getSystemOut()
public boolean hasErrors()
public double getDurationInSeconds()
public String getPrettyDuration()
public int compareTo(TestResults o)
compareTo
in interface Comparable<TestResults>
public TestState getState()
public void setState(TestState state)
public long getTestCaseId()
public void setTestCaseId(long testCaseId)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.