|
||||||||||
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()
|
|
TestResults(java.lang.String className,
java.lang.String methodName,
java.lang.String duration)
Create a new test |
Method Summary | |
---|---|
void |
addError(TestResultError 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 |
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 |
getSystemOut()
|
boolean |
hasErrors()
|
int |
hashCode()
|
void |
setSystemOut(java.lang.String systemOut)
|
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 getDuration()
public void addError(TestResultError error)
error
- a new errorpublic java.util.List 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>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |