|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.resultsummary.tests.TestCaseImpl
public class TestCaseImpl
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Constructor Summary | |
---|---|
TestCaseImpl()
|
|
TestCaseImpl(String name)
|
|
TestCaseImpl(String name,
TestClass testClass)
|
Method Summary | |
---|---|
int |
compareTo(TestCase testCase)
|
TestCase |
copyTestCase()
Creates a copy of the TestCase . |
boolean |
equals(Object o)
This method needs to be here in order to use proper id |
long |
getAverageDuration()
|
long |
getAverageDurationInSeconds()
|
int |
getFirstRanBuildNumber()
|
int |
getLastRanBuildNumber()
|
String |
getLinkedJiraIssueKey()
Tests can be linked to a specific jira issue. |
String |
getMethodName()
Returns a sentence describing the test, derived from the method name of the test. |
String |
getName()
|
int |
getNumberOfFailedRuns()
|
int |
getNumberOfSkippedRuns()
|
int |
getNumberOfSuccessRuns()
|
QuarantineStatistics |
getQuarantineStatistics()
|
double |
getSuccessPercentage()
|
TestClass |
getTestClass()
|
int |
getTotalTestRuns()
|
int |
hashCode()
This method needs to be here in order to use proper id |
boolean |
isQuarantined()
|
void |
setAverageDuration(long averageDuration)
|
void |
setFirstRanBuildNumber(int firstRanBuildNumber)
|
void |
setLastRanBuildNumber(int lastRanBuildNumber)
|
void |
setLinkedJiraIssueKey(String issueKey)
|
protected void |
setName(String name)
|
protected void |
setNameAndTruncate(String name)
|
void |
setNumberOfFailedRuns(int numberOfFailedRuns)
|
void |
setNumberOfSkippedRuns(int numberOfSkippedRuns)
Set the number of runs this test has een skipped. |
void |
setNumberOfSuccessRuns(int numberOfSuccessRuns)
|
void |
setQuarantineStatistics(QuarantineStatistics quarantineStatistics)
|
void |
setQuarantineStatistics(String quarantineUser,
Date quarantineDate)
Deprecated. since 5.9 |
void |
setQuarantineStatistics(String quarantineUser,
Date quarantineDate,
Date quarantineExpiryDate)
|
void |
setTestClass(TestClass testClass)
Set the testClass this test case 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 |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
setId |
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider |
---|
getId |
Constructor Detail |
---|
public TestCaseImpl()
public TestCaseImpl(String name)
public TestCaseImpl(String name, TestClass testClass)
Method Detail |
---|
public String getMethodName()
TestCase
getMethodName
in interface TestCase
public double getSuccessPercentage()
getSuccessPercentage
in interface TestCase
public int getTotalTestRuns()
getTotalTestRuns
in interface TestCase
public String getName()
getName
in interface TestCase
protected void setNameAndTruncate(String name)
protected void setName(String name)
public TestClass getTestClass()
getTestClass
in interface TestCase
public void setTestClass(TestClass testClass)
TestCase
setTestClass
in interface TestCase
testClass
- the test case belongs topublic int getNumberOfSuccessRuns()
getNumberOfSuccessRuns
in interface TestCase
public void setNumberOfSuccessRuns(int numberOfSuccessRuns)
setNumberOfSuccessRuns
in interface TestCase
public int getNumberOfFailedRuns()
getNumberOfFailedRuns
in interface TestCase
public void setNumberOfFailedRuns(int numberOfFailedRuns)
setNumberOfFailedRuns
in interface TestCase
public int getNumberOfSkippedRuns()
getNumberOfSkippedRuns
in interface TestCase
public void setNumberOfSkippedRuns(int numberOfSkippedRuns)
TestCase
setNumberOfSkippedRuns
in interface TestCase
numberOfSkippedRuns
- the new number of skipped runs.public long getAverageDuration()
getAverageDuration
in interface TestCase
public long getAverageDurationInSeconds()
getAverageDurationInSeconds
in interface TestCase
public void setAverageDuration(long averageDuration)
setAverageDuration
in interface TestCase
public int getFirstRanBuildNumber()
getFirstRanBuildNumber
in interface TestCase
public void setFirstRanBuildNumber(int firstRanBuildNumber)
setFirstRanBuildNumber
in interface TestCase
public int getLastRanBuildNumber()
getLastRanBuildNumber
in interface TestCase
public void setLastRanBuildNumber(int lastRanBuildNumber)
setLastRanBuildNumber
in interface TestCase
public boolean isQuarantined()
isQuarantined
in interface TestCase
@Deprecated public void setQuarantineStatistics(@NotNull String quarantineUser, @NotNull Date quarantineDate)
setQuarantineStatistics
in interface TestCase
public void setQuarantineStatistics(@NotNull String quarantineUser, @NotNull Date quarantineDate, @Nullable Date quarantineExpiryDate)
setQuarantineStatistics
in interface TestCase
public void setQuarantineStatistics(@Nullable QuarantineStatistics quarantineStatistics)
setQuarantineStatistics
in interface TestCase
@Nullable public QuarantineStatistics getQuarantineStatistics()
getQuarantineStatistics
in interface TestCase
public String getLinkedJiraIssueKey()
TestCase
getLinkedJiraIssueKey
in interface TestCase
public void setLinkedJiraIssueKey(@Nullable String issueKey)
setLinkedJiraIssueKey
in interface TestCase
@NotNull public TestCase copyTestCase()
TestCase
TestCase
. Note that it does not include TestClass
copyTestCase
in interface TestCase
public int hashCode()
BambooEntityObject
hashCode
in class BambooEntityObject
public boolean equals(Object o)
BambooEntityObject
equals
in class BambooEntityObject
public int compareTo(TestCase testCase)
compareTo
in interface Comparable<TestCase>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |