Class LdapTestConfig

java.lang.Object
net.andresbustamante.yafoot.users.config.LdapTestConfig

@Configuration
@ComponentScan(basePackages={"net.andresbustamante.yafoot.users.repository","net.andresbustamante.yafoot.users.util"})
@PropertySource("classpath:application.properties")
public class LdapTestConfig
extends Object
  • Constructor Details

  • Method Details

    • embeddedLdapServer

      @Bean public org.springframework.ldap.test.unboundid.EmbeddedLdapServerFactoryBean embeddedLdapServer()
      LDAP server bean for testing.
      Returns:
      Embedded server bean
    • ldifPopulator

      @Bean public org.springframework.ldap.test.unboundid.LdifPopulator ldifPopulator()
      LDIF data loader bean.
      Returns:
      Data loader bean for LDIF test file
    • contextSource

      @Bean public org.springframework.ldap.core.support.LdapContextSource contextSource()
      Test context source.
      Returns:
      Context bean for tests