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 Summary
Constructors Constructor Description LdapTestConfig()
-
Method Summary
Modifier and Type Method Description org.springframework.ldap.core.support.LdapContextSource
contextSource()
Test context source.org.springframework.ldap.test.unboundid.EmbeddedLdapServerFactoryBean
embeddedLdapServer()
LDAP server bean for testing.org.springframework.ldap.test.unboundid.LdifPopulator
ldifPopulator()
LDIF data loader bean.
-
Constructor Details
-
LdapTestConfig
public LdapTestConfig()
-
-
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
-