use of org.springframework.ldap.core.LdapTemplate in project spring-boot by spring-projects.
the class LdapHealthIndicatorTests method indicatorExists.
@Test
public void indicatorExists() {
this.context.register(LdapAutoConfiguration.class, LdapDataAutoConfiguration.class, PropertyPlaceholderAutoConfiguration.class, EndpointAutoConfiguration.class, HealthIndicatorAutoConfiguration.class);
this.context.refresh();
LdapTemplate ldapTemplate = this.context.getBean(LdapTemplate.class);
assertThat(ldapTemplate).isNotNull();
LdapHealthIndicator healthIndicator = this.context.getBean(LdapHealthIndicator.class);
assertThat(healthIndicator).isNotNull();
}
Aggregations