|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.bamboo.results.tests.TestResults
public class TestResults
This class is a POJO for representing unit test results.
Constructor Summary | |
---|---|
TestResults(String className,
String methodName,
String duration)
Create a new test |
Method Summary | |
---|---|
void |
addError(TestResultError error)
Add an error to the test |
int |
compareTo(Object obj)
|
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 |
getErrors()
How many errors does the test have. |
String |
getKey()
A key uniquely identifying this test result |
String |
getMethodName()
What is the name of the test |
String |
getPrettyDuration()
|
String |
getSystemOut()
|
boolean |
hasErrors()
|
int |
hashCode()
|
void |
setSystemOut(String systemOut)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestResults(String className, String methodName, String duration)
className
- The name of the class containing the testmethodName
- The name of the testduration
- The time the test took to execute in secondsMethod Detail |
---|
public String getKey()
public String getActualMethodName()
public String getMethodName()
public String getClassName()
public String getDuration()
public void addError(TestResultError error)
error
- a new errorpublic List getErrors()
public void setSystemOut(String systemOut)
public String getSystemOut()
public boolean hasErrors()
public double getDurationInSeconds()
public String getPrettyDuration()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int compareTo(Object obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |