From e767c4e64fa38e883749799017fb79544a2cd7c2 Mon Sep 17 00:00:00 2001 From: Spencer Gibb Date: Fri, 1 Apr 2016 17:54:51 -0600 Subject: [PATCH] Fix broken test --- .../cloud/consul/config/ConsulPropertySourceLocatorTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-cloud-consul-config/src/test/java/org/springframework/cloud/consul/config/ConsulPropertySourceLocatorTests.java b/spring-cloud-consul-config/src/test/java/org/springframework/cloud/consul/config/ConsulPropertySourceLocatorTests.java index c6978fca..632a7f09 100644 --- a/spring-cloud-consul-config/src/test/java/org/springframework/cloud/consul/config/ConsulPropertySourceLocatorTests.java +++ b/spring-cloud-consul-config/src/test/java/org/springframework/cloud/consul/config/ConsulPropertySourceLocatorTests.java @@ -30,6 +30,7 @@ import org.junit.Test; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.cloud.consul.ConsulProperties; +import org.springframework.cloud.context.refresh.ContextRefresher; import org.springframework.cloud.context.scope.refresh.RefreshScope; import org.springframework.cloud.endpoint.RefreshEndpoint; import org.springframework.context.ConfigurableApplicationContext; @@ -75,7 +76,7 @@ public class ConsulPropertySourceLocatorTests { private AtomicInteger count = new AtomicInteger(); public TestRefreshEndpoint( ConfigurableApplicationContext context, RefreshScope scope) { - super(context, scope); + super(new ContextRefresher(context, scope)); } @Override