|
||||||||||
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(java.lang.String className,
java.lang.String methodName,
java.lang.String duration)
Create a new test |
Method Summary | |
---|---|
void |
addError(TestCaseResultError error)
Add an error to the test |
int |
compareTo(TestResults o)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getActualMethodName()
Returns the actual method name without the pretty spaces |
java.lang.String |
getClassName()
The name of the class |
java.lang.String |
getDuration()
How long did the test take to execute? |
double |
getDurationInSeconds()
|
java.util.List<TestCaseResultError> |
getErrors()
How many errors does the test have. |
java.lang.String |
getMethodName()
Returns a sentence describing the test, derived from the method name of the test. |
java.lang.String |
getPrettyDuration()
|
java.lang.String |
getShortClassName()
The short name of the class |
TestState |
getState()
|
java.lang.String |
getSystemOut()
|
long |
getTestCaseId()
|
boolean |
hasErrors()
|
int |
hashCode()
|
void |
setState(TestState state)
|
void |
setSystemOut(java.lang.String systemOut)
|
void |
setTestCaseId(long testCaseId)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestResults()
public TestResults(java.lang.String className, java.lang.String methodName, java.lang.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 java.lang.String getActualMethodName()
public java.lang.String getMethodName()
Returns a sentence describing the test, derived from the method name of the test.
public java.lang.String getClassName()
public java.lang.String getShortClassName()
public java.lang.String getDuration()
public void addError(TestCaseResultError error)
error
- a new errorpublic java.util.List<TestCaseResultError> getErrors()
public void setSystemOut(java.lang.String systemOut)
public java.lang.String getSystemOut()
public boolean hasErrors()
public double getDurationInSeconds()
public java.lang.String getPrettyDuration()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(TestResults o)
compareTo
in interface java.lang.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 |