public interface TestsDao extends BambooObjectDao<TestClass>
| Modifier and Type | Method and Description |
|---|---|
long |
countTestClasses()
Count all TestClass records
|
Collection<? extends TestClass> |
findAll() |
TestClass |
findById(long testClassId)
Find a specific testClass by id
|
List<TestClass> |
getTestClassesForPlan(Plan plan,
int cutoffBuildNumber)
Deprecated.
since 6.9 for performance reasons use
getTestClassesMapForPlan(Plan, long, int) instead. |
com.google.common.collect.Multimap<TestClass,TestCase> |
getTestClassesMapForPlan(Plan plan,
long masterJobId,
int cutoffBuildNumber)
Retrieve all test classes attached to a specific plan in a build later or equal to cutoffBuildNumber.
|
long |
scrollTestClassesForExport(Consumer<TestClass> consumer)
Scroll through and execute function for each of TestClass records
Objects passed to function are not fully initialized.
|
org.hibernate.ScrollableResults |
scrollThroughTestClassesForPlan(Plan plan)
Scroll through all test classes attached to a specific plan, alphabetically by test class name.
|
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll@Nullable TestClass findById(long testClassId)
testClassId - of the test class you want to find@NotNull Collection<? extends TestClass> findAll()
@Deprecated @NotNull List<TestClass> getTestClassesForPlan(Plan plan, int cutoffBuildNumber)
getTestClassesMapForPlan(Plan, long, int) instead.plan - the tests are attached tocutoffBuildNumber - @NotNull com.google.common.collect.Multimap<TestClass,TestCase> getTestClassesMapForPlan(Plan plan, long masterJobId, int cutoffBuildNumber)
@NotNull org.hibernate.ScrollableResults scrollThroughTestClassesForPlan(Plan plan)
plan - the tests are attached tolong countTestClasses()
long scrollTestClassesForExport(@NotNull
Consumer<TestClass> consumer)
consumer - consumer to accept each of the TestClass recordsCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.