|
||||||||||
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.TestClassResultImpl
public class TestClassResultImpl
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Constructor Summary | |
---|---|
TestClassResultImpl()
|
|
TestClassResultImpl(TestClass testClass,
BuildResultsSummary summary)
|
Method Summary | |
---|---|
void |
addTestCase(TestCaseResult testCaseResult)
Add a testCase to this TestClassResult (to this group) |
int |
compareTo(TestClassResult testClassResult)
|
boolean |
equals(java.lang.Object o)
|
BuildResultsSummary |
getBuildResultsSummary()
|
long |
getDuration()
The total running time (in milliseconds) for this class (cumulation of all TestCaseResults durations) |
int |
getFailedTestCount()
|
java.lang.String |
getName()
|
java.lang.String |
getShortName()
|
int |
getSuccessfulTestCount()
|
java.util.List<TestCaseResult> |
getTestCaseResults()
Retrieve the TestCaseResults contained within this TestClassResult |
TestClass |
getTestClass()
|
int |
hashCode()
|
void |
incrementFailedTestCount()
add 1 to the current failed test count |
void |
incrementSuccessfulTestCount()
add 1 to the current successful test count |
void |
setBuildResultsSummary(BuildResultsSummary buildResultsSummary)
|
void |
setDuration(long duration)
Set how long this testClassResult took. |
void |
setFailedTestCount(int failedTestCount)
Set the number of failing tests in this group |
void |
setSuccessfulTestCount(int successfulTestCount)
Set the number of successful tests in this group |
protected void |
setTestClass(TestClass testClass)
|
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 TestClassResultImpl()
public TestClassResultImpl(TestClass testClass, BuildResultsSummary summary)
Method Detail |
---|
@Nullable public java.lang.String getName()
getName
in interface TestClassResultDescriptor
getName
in interface NameProvider
@Nullable public java.lang.String getShortName()
getShortName
in interface TestClassResultDescriptor
public void incrementSuccessfulTestCount()
TestClassResult
incrementSuccessfulTestCount
in interface TestClassResult
public void incrementFailedTestCount()
TestClassResult
incrementFailedTestCount
in interface TestClassResult
public TestClass getTestClass()
getTestClass
in interface TestClassResult
protected void setTestClass(TestClass testClass)
public long getDuration()
TestClassResult
getDuration
in interface TestClassResult
public void setDuration(long duration)
TestClassResult
setDuration
in interface TestClassResult
duration
- - time in milliseconds@NotNull public java.util.List<TestCaseResult> getTestCaseResults()
TestClassResult
getTestCaseResults
in interface TestClassResult
public void addTestCase(TestCaseResult testCaseResult)
TestClassResult
addTestCase
in interface TestClassResult
testCaseResult
- to addpublic int getFailedTestCount()
getFailedTestCount
in interface TestClassResult
public void setFailedTestCount(int failedTestCount)
TestClassResult
setFailedTestCount
in interface TestClassResult
failedTestCount
- - number of failed tests in this grouppublic int getSuccessfulTestCount()
getSuccessfulTestCount
in interface TestClassResult
public void setSuccessfulTestCount(int successfulTestCount)
TestClassResult
setSuccessfulTestCount
in interface TestClassResult
successfulTestCount
- - number of successful tests in this grouppublic BuildResultsSummary getBuildResultsSummary()
getBuildResultsSummary
in interface TestClassResult
public void setBuildResultsSummary(BuildResultsSummary buildResultsSummary)
public 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(TestClassResult testClassResult)
compareTo
in interface java.lang.Comparable<TestClassResult>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |