Commit 5c216c20 authored by Eddú Meléndez's avatar Eddú Meléndez Committed by Stephane Nicoll

Clean LdapHealthIndicatorTests

Closes gh-11158
parent 286afa18
......@@ -16,13 +16,10 @@
package org.springframework.boot.actuate.ldap;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.Status;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.ldap.CommunicationException;
import org.springframework.ldap.core.ContextExecutor;
import org.springframework.ldap.core.LdapTemplate;
......@@ -40,20 +37,6 @@ import static org.mockito.Mockito.verify;
*/
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
@SuppressWarnings("unchecked")
public void ldapIsUp() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment