com.atlassian.bamboo.testutils.backdoor
Class PlansControl

java.lang.Object
  extended by com.atlassian.bamboo.testutils.backdoor.BackdoorControl<PlansControl>
      extended by com.atlassian.bamboo.testutils.backdoor.PlansControl

public class PlansControl
extends BackdoorControl<PlansControl>


Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
BackdoorControl.JsonMediaTypeFilter
 
Field Summary
 
Fields inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
API_REST_PATH, DEFAULT_REST_PATH, rootPath
 
Constructor Summary
PlansControl(BambooEnvironmentData environmentData)
           
 
Method Summary
 RestPlan clonePlan(PlanKey planKeyToClone, PlanKey newPlanKey)
          Clone plan
 void deleteAllPlans()
          Delete all plans
 void deletePlan(PlanKey planKey)
          Delete plan
 void enablePlan(PlanKey planKey)
          Enable plan
 RestBranches getAllBranches(PlanKey key)
          Get all branches for chain
 RestPlanBranch getBranchByName(PlanKey key, java.lang.String branchName)
          Get branches with given name for chain
 Result getBuildResult(PlanKey planKey, int buildNumber)
          Get build result
 void triggerBuild(PlanKey planKey)
          Trigger build
 com.jayway.restassured.path.json.JsonPath waitForCompletedBuild(PlanKey planKey, int buildNumber)
           
 com.jayway.restassured.path.json.JsonPath waitForCompletedBuild(PlanResultKey key)
           
 void waitForSuccessfulBuild(PlanKey planKey, int buildNumber)
           
 
Methods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
client, createResource, createResource, createResourceForPath, createResourceForPath, get, getEnvironmentData, getRestModulePath, percentEncode, ping, resourceRoot, resourceRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlansControl

public PlansControl(@NotNull
                    BambooEnvironmentData environmentData)
Method Detail

deletePlan

public void deletePlan(@NotNull
                       PlanKey planKey)
Delete plan

Parameters:
planKey - key of a Plan

enablePlan

public void enablePlan(@NotNull
                       PlanKey planKey)
Enable plan

Parameters:
planKey - key of a Plan

deleteAllPlans

public void deleteAllPlans()
Delete all plans


getBranchByName

public RestPlanBranch getBranchByName(PlanKey key,
                                      java.lang.String branchName)
                               throws java.lang.Exception
Get branches with given name for chain

Parameters:
key -
branchName -
Returns:
Throws:
java.lang.Exception

getAllBranches

public RestBranches getAllBranches(PlanKey key)
                            throws java.lang.Exception
Get all branches for chain

Parameters:
key -
Returns:
Throws:
java.lang.Exception

clonePlan

public RestPlan clonePlan(PlanKey planKeyToClone,
                          PlanKey newPlanKey)
                   throws java.lang.Exception
Clone plan

Parameters:
planKeyToClone -
newPlanKey -
Returns:
Throws:
java.lang.Exception

triggerBuild

public void triggerBuild(PlanKey planKey)
Trigger build

Parameters:
planKey -

getBuildResult

public Result getBuildResult(PlanKey planKey,
                             int buildNumber)
                      throws java.lang.Exception
Get build result

Parameters:
planKey -
buildNumber -
Returns:
Throws:
java.lang.Exception

waitForSuccessfulBuild

public void waitForSuccessfulBuild(PlanKey planKey,
                                   int buildNumber)

waitForCompletedBuild

public com.jayway.restassured.path.json.JsonPath waitForCompletedBuild(PlanResultKey key)

waitForCompletedBuild

public com.jayway.restassured.path.json.JsonPath waitForCompletedBuild(PlanKey planKey,
                                                                       int buildNumber)


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.