From 2c71cb8efdbedcc7b522843ea99ad9bc8ec9a3db Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Sat, 5 Nov 2016 11:10:17 +0100 Subject: [PATCH] Polish --- ...nagementServerPropertiesAutoConfigurationTests.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/ManagementServerPropertiesAutoConfigurationTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/ManagementServerPropertiesAutoConfigurationTests.java index 951e1222be..bcc897cd18 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/ManagementServerPropertiesAutoConfigurationTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/ManagementServerPropertiesAutoConfigurationTests.java @@ -19,10 +19,8 @@ package org.springframework.boot.actuate.autoconfigure; import org.junit.After; import org.junit.Test; -import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.test.util.EnvironmentTestUtils; import org.springframework.context.annotation.AnnotationConfigApplicationContext; -import org.springframework.context.annotation.Configuration; import static org.assertj.core.api.Assertions.assertThat; @@ -96,16 +94,10 @@ public class ManagementServerPropertiesAutoConfigurationTests { public ManagementServerProperties load(String... environment) { AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(); EnvironmentTestUtils.addEnvironment(ctx, environment); - ctx.register(TestConfiguration.class); + ctx.register(ManagementServerPropertiesAutoConfiguration.class); ctx.refresh(); this.context = ctx; return this.context.getBean(ManagementServerProperties.class); } - @Configuration - @EnableConfigurationProperties(ManagementServerProperties.class) - static class TestConfiguration { - - } - }