Class EnvironmentDeletionServiceWiredTest
- java.lang.Object
-
- it.com.atlassian.bamboo.deployments.environments.service.EnvironmentDeletionServiceWiredTest
-
public class EnvironmentDeletionServiceWiredTest extends Object
-
-
Field Summary
Fields Modifier and Type Field Description ImpersonationRule
impersonationRule
static PlanKey
PLAN_KEY
-
Constructor Summary
Constructors Constructor Description EnvironmentDeletionServiceWiredTest(DeploymentsTestService deploymentsTestService, EnvironmentDeletionService environmentDeletionService, EnvironmentService environmentService, HibernateMutableAclService aclService, ImpersonationService impersonationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testJoeIsAllowedToDeleteEnvironmentsForDeploymentProjectWhenHeWasGrantedPermissions()
void
testJoeIsAllowedToDeleteEnvironmentWhenHeWasGrantedPermissions()
void
testJoeIsAllowedToDeleteHisOwnEnvironment()
void
testJoeIsIsAllowedToDeleteEnvironmentsForHisOwnDeploymentProject()
void
testJoeIsNotAllowedToDeleteEnvironment()
void
testJoeIsNotAllowedToDeleteEnvironmentsForDeploymentProject()
-
-
-
Field Detail
-
PLAN_KEY
public static final PlanKey PLAN_KEY
-
impersonationRule
public ImpersonationRule impersonationRule
-
-
Constructor Detail
-
EnvironmentDeletionServiceWiredTest
@Inject public EnvironmentDeletionServiceWiredTest(DeploymentsTestService deploymentsTestService, EnvironmentDeletionService environmentDeletionService, EnvironmentService environmentService, HibernateMutableAclService aclService, ImpersonationService impersonationService)
-
-
Method Detail
-
testJoeIsNotAllowedToDeleteEnvironment
public void testJoeIsNotAllowedToDeleteEnvironment() throws Exception
- Throws:
Exception
-
testJoeIsAllowedToDeleteEnvironmentWhenHeWasGrantedPermissions
public void testJoeIsAllowedToDeleteEnvironmentWhenHeWasGrantedPermissions() throws Exception
- Throws:
Exception
-
testJoeIsAllowedToDeleteHisOwnEnvironment
public void testJoeIsAllowedToDeleteHisOwnEnvironment() throws Exception
- Throws:
Exception
-
testJoeIsNotAllowedToDeleteEnvironmentsForDeploymentProject
public void testJoeIsNotAllowedToDeleteEnvironmentsForDeploymentProject() throws Exception
- Throws:
Exception
-
testJoeIsAllowedToDeleteEnvironmentsForDeploymentProjectWhenHeWasGrantedPermissions
public void testJoeIsAllowedToDeleteEnvironmentsForDeploymentProjectWhenHeWasGrantedPermissions() throws Exception
- Throws:
Exception
-
-