com.atlassian.bamboo.testutils.junit.rule
Class SecurityConfigFactoryExclusiveUse

java.lang.Object
  extended by 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
SecurityConfigFactoryExclusiveUse()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityConfigFactoryExclusiveUse

public SecurityConfigFactoryExclusiveUse()
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 interface org.junit.rules.TestRule

setSecurityConfig

public void setSecurityConfig(com.atlassian.seraph.config.SecurityConfig config)


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.