Class SchedulerControl
java.lang.Object
com.atlassian.bamboo.testutils.backdoor.BackdoorControl<SchedulerControl>
com.atlassian.bamboo.testutils.backdoor.SchedulerControl
Backdoor control used to interact with the job sceduler.
-
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, XSRF_NO_CHECK, XSRF_TOKEN_HEADER
-
Constructor Summary
ConstructorDescriptionSchedulerControl
(BambooEnvironmentData bambooEnvironmentData) Parameterized constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetJobs()
Gets the collection of jobs currently scheduled to be run.void
triggerJob
(ScheduledJob job) Methods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
anonymousResourceRoot, client, createResource, createResourceForPath, createResourceForPath, get, getEnvironmentData, getRestModulePath, getRootPath, percentEncode, ping, post, resourceRoot, tearDown
-
Constructor Details
-
SchedulerControl
Parameterized constructor.- Parameters:
bambooEnvironmentData
- the environment data used when testing
-
-
Method Details
-
getJobs
Gets the collection of jobs currently scheduled to be run.- Returns:
- the collection of currently scheduled jobs
- Throws:
Exception
-
triggerJob
-