Class TestClassImpl
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.resultsummary.tests.TestClassImpl
- All Implemented Interfaces:
BambooIdProvider,BambooObject,TestClass,Cloneable,Comparable<TestClass>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a testCase to this groupint@NotNull TestClasscopyTestClass(@NotNull Plan plan) Creates a copy of theTestClass.booleanlongGet id of the master of the job this test class belongs to.getName()The real name of the test classgetPlan()Get the plan that this test class belongs to.Get the short name for this class for the UI@NotNull Collection<TestCase> Retrieve the TestCases that are part of this class.Retrieve the TestCases that are part of this class.inthashCode()voidsetMasterJobId(long masterJobId) protected voidprotected voidtoString()Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Constructor Details
-
TestClassImpl
public TestClassImpl() -
TestClassImpl
-
-
Method Details
-
getShortName
Description copied from interface:TestClassGet the short name for this class for the UI- Specified by:
getShortNamein interfaceTestClass- Returns:
- the name of this class without preceding packages.
-
addTest
Description copied from interface:TestClassAdd a testCase to this group -
getName
Description copied from interface:TestClassThe real name of the test class -
setName
-
getTestCases
Description copied from interface:TestClassRetrieve the TestCases that are part of this class. Note that this method performs a copy, therefore it's not recommended for performance reason.- Specified by:
getTestCasesin interfaceTestClass- Returns:
- the TestCases that are part of this class.
-
getTestCaseCollection
Description copied from interface:TestClassRetrieve the TestCases that are part of this class.- Specified by:
getTestCaseCollectionin interfaceTestClass- Returns:
- the TestCases that are part of this class.
-
getPlan
Description copied from interface:TestClassGet the plan that this test class belongs to. Since 6.9 returns chain instead of job. -
setPlan
-
getMasterJobId
public long getMasterJobId()Description copied from interface:TestClassGet id of the master of the job this test class belongs to. Use together withTestClass.getPlan()to find the actual branched job this class belongs to.- Specified by:
getMasterJobIdin interfaceTestClass
-
setMasterJobId
public void setMasterJobId(long masterJobId) -
copyTestClass
Description copied from interface:TestClass- Specified by:
copyTestClassin interfaceTestClass- Parameters:
plan-- Returns:
- testClass
-
equals
- Overrides:
equalsin classcom.atlassian.core.bean.EntityObject
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.atlassian.core.bean.EntityObject
-
compareTo
- Specified by:
compareToin interfaceComparable<TestClass>
-
toString
-