@Entity public class TestClassResultImpl extends HibernateBambooEntityObject implements TestClassResult
| Constructor and Description |
|---|
TestClassResultImpl() |
TestClassResultImpl(TestClass testClass,
BuildResultsSummary summary) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTestCase(TestCaseResult testCaseResult)
Add a testCase to this TestClassResult (to this group)
|
int |
compareTo(TestClassResult testClassResult) |
boolean |
equals(Object o) |
BuildResultsSummary |
getBuildResultsSummary() |
long |
getDuration()
The total running time (in milliseconds) for this class (cumulation of all TestCaseResults durations)
|
int |
getFailedTestCount() |
String |
getName() |
String |
getShortName() |
int |
getSkippedTestCount() |
int |
getSuccessfulTestCount() |
List<TestCaseResult> |
getTestCaseResults()
Retrieve the TestCaseResults contained within this TestClassResult
|
Set<TestCaseResult> |
getTestCaseResultsSet()
Retrieve the TestCaseResults contained within this TestClassResult
|
TestClass |
getTestClass() |
int |
hashCode() |
void |
incrementFailedTestCount()
add 1 to the current failed test count
|
void |
incrementSkippedTestCount()
add 1 to the current skipped 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 |
setSkippedTestCount(int skippedTestCount)
Set the number of skipped tests in this group
|
void |
setSuccessfulTestCount(int successfulTestCount)
Set the number of successful tests in this group
|
protected void |
setTestClass(TestClass testClass) |
getId, setIdclone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDatefinalize, getClass, notify, notifyAll, toString, wait, wait, waitsetIdgetIdpublic TestClassResultImpl()
public TestClassResultImpl(TestClass testClass, BuildResultsSummary summary)
@Nullable public String getName()
getName in interface TestClassResultDescriptorgetName in interface NameProvider@Nullable public String getShortName()
getShortName in interface TestClassResultDescriptorpublic void incrementSuccessfulTestCount()
TestClassResultincrementSuccessfulTestCount in interface TestClassResultpublic void incrementFailedTestCount()
TestClassResultincrementFailedTestCount in interface TestClassResultpublic TestClass getTestClass()
getTestClass in interface TestClassResultprotected void setTestClass(TestClass testClass)
public long getDuration()
TestClassResultgetDuration in interface TestClassResultpublic void setDuration(long duration)
TestClassResultsetDuration in interface TestClassResultduration - - time in milliseconds@NotNull public List<TestCaseResult> getTestCaseResults()
TestClassResultgetTestCaseResults in interface TestClassResult@NotNull public Set<TestCaseResult> getTestCaseResultsSet()
TestClassResultgetTestCaseResultsSet in interface TestClassResultpublic void addTestCase(TestCaseResult testCaseResult)
TestClassResultaddTestCase in interface TestClassResulttestCaseResult - to addpublic int getFailedTestCount()
getFailedTestCount in interface TestClassResultpublic void setFailedTestCount(int failedTestCount)
TestClassResultsetFailedTestCount in interface TestClassResultfailedTestCount - - number of failed tests in this grouppublic int getSuccessfulTestCount()
getSuccessfulTestCount in interface TestClassResultpublic void setSuccessfulTestCount(int successfulTestCount)
TestClassResultsetSuccessfulTestCount in interface TestClassResultsuccessfulTestCount - - number of successful tests in this grouppublic void incrementSkippedTestCount()
TestClassResultincrementSkippedTestCount in interface TestClassResultpublic int getSkippedTestCount()
getSkippedTestCount in interface TestClassResultpublic void setSkippedTestCount(int skippedTestCount)
TestClassResultsetSkippedTestCount in interface TestClassResultskippedTestCount - - number of skipped tests in this grouppublic BuildResultsSummary getBuildResultsSummary()
getBuildResultsSummary in interface TestClassResultpublic void setBuildResultsSummary(BuildResultsSummary buildResultsSummary)
public boolean equals(Object o)
equals in class com.atlassian.core.bean.EntityObjectpublic int hashCode()
hashCode in class com.atlassian.core.bean.EntityObjectpublic int compareTo(TestClassResult testClassResult)
compareTo in interface Comparable<TestClassResult>Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.