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 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 interface org.junit.rules.TestRule
    • setSecurityConfig

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