Class SecurityConfigFactoryExclusiveUse
- java.lang.Object
-
- com.atlassian.bamboo.testutils.junit.rule.SecurityConfigFactoryExclusiveUse
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class SecurityConfigFactoryExclusiveUse extends Object implements org.junit.rules.TestRule
Rule that should be used in all tests that mock/access SecurityConfigFactory's securityConfig. Please note that after evaluating test method security config is cleared.
-
-
Constructor Summary
Constructors Constructor Description SecurityConfigFactoryExclusiveUse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statement
apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
void
setSecurityConfig(com.atlassian.seraph.config.SecurityConfig config)
-
-
-
Method Detail
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
- Specified by:
apply
in interfaceorg.junit.rules.TestRule
-
setSecurityConfig
public void setSecurityConfig(com.atlassian.seraph.config.SecurityConfig config)
-
-