Class LDAPAuthenticationFactoryBeanTest


  • public class LDAPAuthenticationFactoryBeanTest
    extends Object
    Unit test for LDAP authentication factory bean.
    • Field Detail

      • directoryServer

        private com.unboundid.ldap.listener.InMemoryDirectoryServer directoryServer
      • factoryBean

        private net.shibboleth.idp.authn.config.LDAPAuthenticationFactoryBean factoryBean
    • Constructor Detail

      • LDAPAuthenticationFactoryBeanTest

        public LDAPAuthenticationFactoryBeanTest()
    • Method Detail

      • setupDirectoryServer

        @BeforeClass
        public void setupDirectoryServer()
                                  throws com.unboundid.ldap.sdk.LDAPException
        Creates an UnboundID in-memory directory server. Leverages LDIF found in test resources.
        Throws:
        com.unboundid.ldap.sdk.LDAPException - if the in-memory directory server cannot be created
      • teardownDirectoryServer

        @AfterClass
        public void teardownDirectoryServer()
        Shutdown the in-memory directory server.
      • setupAuthenticator

        @BeforeMethod
        public void setupAuthenticator()
                                throws Exception
        Throws:
        Exception