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 TypeMethodDescriptionvoid
Add a testCase to this groupint
@NotNull TestClass
copyTestClass
(@NotNull Plan plan) Creates a copy of theTestClass
.boolean
long
Get 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.int
hashCode()
void
setMasterJobId
(long masterJobId) protected void
protected void
toString()
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Constructor Details
-
TestClassImpl
public TestClassImpl() -
TestClassImpl
-
-
Method Details
-
getShortName
Description copied from interface:TestClass
Get the short name for this class for the UI- Specified by:
getShortName
in interfaceTestClass
- Returns:
- the name of this class without preceding packages.
-
addTest
Description copied from interface:TestClass
Add a testCase to this group -
getName
Description copied from interface:TestClass
The real name of the test class -
setName
-
getTestCases
Description copied from interface:TestClass
Retrieve 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:
getTestCases
in interfaceTestClass
- Returns:
- the TestCases that are part of this class.
-
getTestCaseCollection
Description copied from interface:TestClass
Retrieve the TestCases that are part of this class.- Specified by:
getTestCaseCollection
in interfaceTestClass
- Returns:
- the TestCases that are part of this class.
-
getPlan
Description copied from interface:TestClass
Get 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:TestClass
Get 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:
getMasterJobId
in interfaceTestClass
-
setMasterJobId
public void setMasterJobId(long masterJobId) -
copyTestClass
Description copied from interface:TestClass
- Specified by:
copyTestClass
in interfaceTestClass
- Returns:
- testClass
-
equals
- Overrides:
equals
in classcom.atlassian.core.bean.EntityObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.atlassian.core.bean.EntityObject
-
compareTo
- Specified by:
compareTo
in interfaceComparable<TestClass>
-
toString
-