Class SecurityConfigFactoryExclusiveUse
java.lang.Object
com.atlassian.bamboo.testutils.junit.rule.SecurityConfigFactoryExclusiveUse
- All Implemented Interfaces:
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
-
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statement
apply
(org.junit.runners.model.Statement base, org.junit.runner.Description description) void
setSecurityConfig
(com.atlassian.seraph.config.SecurityConfig config)
-
Constructor Details
-
SecurityConfigFactoryExclusiveUse
public SecurityConfigFactoryExclusiveUse()
-
-
Method Details
-
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)
-