From 35a376b4034facf4df5660e997382128a7def85e Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Fri, 24 May 2013 12:02:03 +0100 Subject: [PATCH] Fix bug in test --- .../actuate/autoconfigure/SecurityConfigurationTests.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-bootstrap-actuator/src/test/java/org/springframework/bootstrap/actuate/autoconfigure/SecurityConfigurationTests.java b/spring-bootstrap-actuator/src/test/java/org/springframework/bootstrap/actuate/autoconfigure/SecurityConfigurationTests.java index d7bc24d747..950c65be47 100644 --- a/spring-bootstrap-actuator/src/test/java/org/springframework/bootstrap/actuate/autoconfigure/SecurityConfigurationTests.java +++ b/spring-bootstrap-actuator/src/test/java/org/springframework/bootstrap/actuate/autoconfigure/SecurityConfigurationTests.java @@ -17,6 +17,7 @@ package org.springframework.bootstrap.actuate.autoconfigure; import org.junit.Test; +import org.springframework.bootstrap.actuate.properties.EndpointsProperties; import org.springframework.bootstrap.autoconfigure.PropertyPlaceholderAutoConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -41,7 +42,7 @@ public class SecurityConfigurationTests { public void testWebConfiguration() throws Exception { this.context = new AnnotationConfigWebApplicationContext(); this.context.setServletContext(new MockServletContext()); - this.context.register(SecurityConfiguration.class, + this.context.register(SecurityConfiguration.class, EndpointsProperties.class, PropertyPlaceholderAutoConfiguration.class); this.context.refresh(); assertNotNull(this.context.getBean(AuthenticationManager.class)); @@ -52,7 +53,7 @@ public class SecurityConfigurationTests { this.context = new AnnotationConfigWebApplicationContext(); this.context.setServletContext(new MockServletContext()); this.context.register(TestConfiguration.class, SecurityConfiguration.class, - PropertyPlaceholderAutoConfiguration.class); + EndpointsProperties.class, PropertyPlaceholderAutoConfiguration.class); this.context.refresh(); assertEquals(this.context.getBean(TestConfiguration.class).authenticationManager, this.context.getBean(AuthenticationManager.class));