Merge pull request #11158 from eddumelendez:clean_LdapHealthIndicatorTests
* pr/11158: Clean LdapHealthIndicatorTests
This commit is contained in:
commit
95afad7791
|
|
@ -16,13 +16,10 @@
|
||||||
|
|
||||||
package org.springframework.boot.actuate.ldap;
|
package org.springframework.boot.actuate.ldap;
|
||||||
|
|
||||||
import org.junit.After;
|
|
||||||
import org.junit.Before;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import org.springframework.boot.actuate.health.Health;
|
import org.springframework.boot.actuate.health.Health;
|
||||||
import org.springframework.boot.actuate.health.Status;
|
import org.springframework.boot.actuate.health.Status;
|
||||||
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
|
|
||||||
import org.springframework.ldap.CommunicationException;
|
import org.springframework.ldap.CommunicationException;
|
||||||
import org.springframework.ldap.core.ContextExecutor;
|
import org.springframework.ldap.core.ContextExecutor;
|
||||||
import org.springframework.ldap.core.LdapTemplate;
|
import org.springframework.ldap.core.LdapTemplate;
|
||||||
|
|
@ -40,20 +37,6 @@ import static org.mockito.Mockito.verify;
|
||||||
*/
|
*/
|
||||||
public class LdapHealthIndicatorTests {
|
public class LdapHealthIndicatorTests {
|
||||||
|
|
||||||
private AnnotationConfigApplicationContext context;
|
|
||||||
|
|
||||||
@Before
|
|
||||||
public void setup() {
|
|
||||||
this.context = new AnnotationConfigApplicationContext();
|
|
||||||
}
|
|
||||||
|
|
||||||
@After
|
|
||||||
public void close() {
|
|
||||||
if (this.context != null) {
|
|
||||||
this.context.close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public void ldapIsUp() {
|
public void ldapIsUp() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue