@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
|
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, setId
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
setId
getId
public TestClassResultImpl()
public TestClassResultImpl(TestClass testClass, BuildResultsSummary summary)
@Nullable public String getName()
getName
in interface TestClassResultDescriptor
getName
in interface NameProvider
@Nullable public 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 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 void incrementSkippedTestCount()
TestClassResult
incrementSkippedTestCount
in interface TestClassResult
public int getSkippedTestCount()
getSkippedTestCount
in interface TestClassResult
public void setSkippedTestCount(int skippedTestCount)
TestClassResult
setSkippedTestCount
in interface TestClassResult
skippedTestCount
- - number of skipped tests in this grouppublic BuildResultsSummary getBuildResultsSummary()
getBuildResultsSummary
in interface TestClassResult
public void setBuildResultsSummary(BuildResultsSummary buildResultsSummary)
public boolean equals(Object o)
equals
in class com.atlassian.core.bean.EntityObject
public int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
public int compareTo(TestClassResult testClassResult)
compareTo
in interface Comparable<TestClassResult>
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.