From 5c216c20291496fe6c578203a421a025790ae1ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edd=C3=BA=20Mel=C3=A9ndez?= Date: Sun, 26 Nov 2017 15:19:53 -0500 Subject: [PATCH] Clean LdapHealthIndicatorTests Closes gh-11158 --- .../actuate/ldap/LdapHealthIndicatorTests.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/ldap/LdapHealthIndicatorTests.java b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/ldap/LdapHealthIndicatorTests.java index 9df3eb80fac..b14155a3724 100644 --- a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/ldap/LdapHealthIndicatorTests.java +++ b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/ldap/LdapHealthIndicatorTests.java @@ -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() {