Class 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 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)