Class LDAPAuthenticationFactoryBeanTest

java.lang.Object
net.shibboleth.idp.authn.config.LDAPAuthenticationFactoryBeanTest

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

    • DATA_PATH

      private static final String DATA_PATH
      See Also:
    • directoryServer

      private InMemoryDirectory directoryServer
    • factoryBean

      private net.shibboleth.idp.authn.config.LDAPAuthenticationFactoryBean factoryBean
    • authenticator

      private Authenticator authenticator
  • Constructor Details

    • LDAPAuthenticationFactoryBeanTest

      public LDAPAuthenticationFactoryBeanTest()
  • Method Details

    • setupDirectoryServer

      @BeforeClass public void setupDirectoryServer()
      Creates an UnboundID in-memory directory server. Leverages LDIF found in test resources.
    • teardownDirectoryServer

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

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

      @AfterMethod public void teardownAuthenticator() throws Exception
      Throws:
      Exception
    • testAuthnSuccess

      public void testAuthnSuccess() throws Exception
      Throws:
      Exception
    • testAuthnFailure

      public void testAuthnFailure() throws Exception
      Throws:
      Exception
    • createAuthenticationRequest

      private AuthenticationRequest createAuthenticationRequest(String username, String password)