|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.results.tests.TestResults
public class TestResults
This class is a POJO for representing unit test results.
Constructor Summary | |
---|---|
TestResults()
|
|
TestResults(String className,
String methodName,
String duration)
Create a new test |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestResults()
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 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 String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |