Interface TestClass
-
- All Superinterfaces:
BambooIdProvider
,BambooObject
,Comparable<TestClass>
- All Known Implementing Classes:
TestClassImpl
public interface TestClass extends BambooObject, Comparable<TestClass>
A grouping of TestCases. Belongs to a plan
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
addTest(TestCase testCase)
Add a testCase to this group@NotNull TestClass
copyTestClass(@NotNull Plan plan)
Creates a copy of theTestClass
.long
getMasterJobId()
Get id of the master of the job this test class belongs to.String
getName()
The real name of the test classPlan
getPlan()
Get the plan that this test class belongs to.String
getShortName()
Get the short name for this class for the UI@NotNull Collection<TestCase>
getTestCaseCollection()
Retrieve the TestCases that are part of this class.List<TestCase>
getTestCases()
Deprecated.since 8.1 use {getTestCaseCollection()
} instead.-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
addTest
void addTest(TestCase testCase)
Add a testCase to this group- Parameters:
testCase
- to add.
-
getName
String getName()
The real name of the test class- Returns:
- real name of the test class
-
getTestCases
@Deprecated List<TestCase> getTestCases()
Deprecated.since 8.1 use {getTestCaseCollection()
} instead.Retrieve the TestCases that are part of this class. Note that this method performs a copy, therefore it's not recommended for performance reason.- Returns:
- the TestCases that are part of this class.
-
getTestCaseCollection
@NotNull @NotNull Collection<TestCase> getTestCaseCollection()
Retrieve the TestCases that are part of this class.- Returns:
- the TestCases that are part of this class.
-
getPlan
Plan getPlan()
Get the plan that this test class belongs to. Since 6.9 returns chain instead of job.- Returns:
- the plan that this test class belongs to
-
getMasterJobId
long getMasterJobId()
Get id of the master of the job this test class belongs to. Use together withgetPlan()
to find the actual branched job this class belongs to.
-
getShortName
String getShortName()
Get the short name for this class for the UI- Returns:
- the name of this class without preceding packages.
-
-