|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.bamboo.core.BambooEntityObject com.atlassian.bamboo.resultsummary.tests.TestCaseResultImpl
public class TestCaseResultImpl
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Constructor Summary | |
---|---|
TestCaseResultImpl()
|
|
TestCaseResultImpl(TestCase testCase,
long duration,
TestState state)
|
|
TestCaseResultImpl(TestCase testCase,
long duration,
TestState state,
java.util.List<TestCaseResultError> testCaseResultErrors)
|
Method Summary | |
---|---|
int |
compareTo(TestCaseResult testCaseResult)
|
boolean |
equals(java.lang.Object o)
|
TestDeltaState |
getDeltaState()
Return the Delta state for this test, e.g. |
long |
getDuration()
How long the test took to run |
java.util.List<TestCaseResultError> |
getErrors()
|
int |
getFailingSince()
If in delta state FAILING, return the build number for the build that this test started failing in. |
java.lang.String |
getMethodName()
|
java.lang.String |
getName()
|
java.lang.String |
getPrettyDuration()
|
TestState |
getState()
Get the state of this test run, e.g. |
TestCase |
getTestCase()
|
TestClassResult |
getTestClassResult()
|
int |
hashCode()
|
void |
setDeltaState(TestDeltaState testDeltaState)
Set the delta state for this test (the difference between the state of this test and the state in the last build) |
void |
setDuration(long duration)
|
protected void |
setErrors(java.util.List<TestCaseResultError> testErrors)
|
void |
setFailingSince(int buildNumber)
Set the build number for the build that this test started failing in. |
void |
setState(TestState state)
|
void |
setTestCase(TestCase testCase)
|
void |
setTestClassResult(TestClassResult testClassResult)
Set the TestClassResult this test result belongs to |
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
getId, setId |
Methods inherited from class com.atlassian.core.bean.EntityObject |
---|
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestCaseResultImpl()
public TestCaseResultImpl(TestCase testCase, long duration, TestState state)
public TestCaseResultImpl(TestCase testCase, long duration, TestState state, @Nullable java.util.List<TestCaseResultError> testCaseResultErrors)
Method Detail |
---|
@Nullable public java.lang.String getName()
getName
in interface TestCaseResult
getName
in interface NameProvider
@Nullable public java.lang.String getMethodName()
getMethodName
in interface TestCaseResult
public java.lang.String getPrettyDuration()
getPrettyDuration
in interface TestCaseResult
public TestCase getTestCase()
getTestCase
in interface TestCaseResult
TestCase
this result belongs topublic void setTestCase(TestCase testCase)
public long getDuration()
TestCaseResult
getDuration
in interface TestCaseResult
public void setDuration(long duration)
public TestClassResult getTestClassResult()
getTestClassResult
in interface TestCaseResult
public void setTestClassResult(TestClassResult testClassResult)
TestCaseResult
setTestClassResult
in interface TestCaseResult
testClassResult
- this test result belongs to@NotNull public java.util.List<TestCaseResultError> getErrors()
getErrors
in interface TestCaseResult
protected void setErrors(@Nullable java.util.List<TestCaseResultError> testErrors)
public TestState getState()
TestCaseResult
getState
in interface TestCaseResult
public void setState(TestState state)
public TestDeltaState getDeltaState()
TestCaseResult
getDeltaState
in interface TestCaseResult
public void setDeltaState(TestDeltaState testDeltaState)
TestCaseResult
setDeltaState
in interface TestCaseResult
testDeltaState
- - the delta state for this testpublic int getFailingSince()
TestCaseResult
getFailingSince
in interface TestCaseResult
public void setFailingSince(int buildNumber)
TestCaseResult
setFailingSince
in interface TestCaseResult
buildNumber
- that the test has been failing sincepublic int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
public boolean equals(java.lang.Object o)
equals
in class com.atlassian.core.bean.EntityObject
public int compareTo(TestCaseResult testCaseResult)
compareTo
in interface java.lang.Comparable<TestCaseResult>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |