Class DatabaseControl
- java.lang.Object
-
- com.atlassian.bamboo.testutils.backdoor.BackdoorControl<DatabaseControl>
-
- com.atlassian.bamboo.testutils.backdoor.DatabaseControl
-
public class DatabaseControl extends BackdoorControl<DatabaseControl>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
ADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, rootPath
-
-
Constructor Summary
Constructors Constructor Description DatabaseControl(@NotNull BambooEnvironmentData environmentData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Long
getTestCasesCount()
@NotNull Long
getTestCasesCount(PlanKey planKey)
boolean
isVcsBranchMarkedAsDeleted(@NotNull PlanKey planKey, @NotNull String vcsBranchName)
Checks if a given VCS branch for the specified plan is marked as deleted in the database, indicating that all plan branches referring to it should be cleaned up.-
Methods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
client, createResource, createResourceForPath, get, getEnvironmentData, getRestModulePath, percentEncode, ping, post, resourceRoot, tearDown
-
-
-
-
Constructor Detail
-
DatabaseControl
public DatabaseControl(@NotNull @NotNull BambooEnvironmentData environmentData)
-
-
Method Detail
-
getTestCasesCount
@NotNull public @NotNull Long getTestCasesCount()
-
isVcsBranchMarkedAsDeleted
public boolean isVcsBranchMarkedAsDeleted(@NotNull @NotNull PlanKey planKey, @NotNull @NotNull String vcsBranchName) throws NotFoundException
Checks if a given VCS branch for the specified plan is marked as deleted in the database, indicating that all plan branches referring to it should be cleaned up. Will return false if the database entry for the given branch does not exist.- Throws:
NotFoundException
-
-