diff --git a/spring-cloud-consul-config/src/test/java/org/springframework/cloud/consul/config/ConsulPropertySourceLocatorAppNameCustomizedTests.java b/spring-cloud-consul-config/src/test/java/org/springframework/cloud/consul/config/ConsulPropertySourceLocatorAppNameCustomizedTests.java index b94dc31e..9f1d7e28 100644 --- a/spring-cloud-consul-config/src/test/java/org/springframework/cloud/consul/config/ConsulPropertySourceLocatorAppNameCustomizedTests.java +++ b/spring-cloud-consul-config/src/test/java/org/springframework/cloud/consul/config/ConsulPropertySourceLocatorAppNameCustomizedTests.java @@ -21,6 +21,7 @@ import java.util.UUID; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.springframework.boot.WebApplicationType; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.cloud.consul.ConsulProperties; @@ -72,7 +73,7 @@ public class ConsulPropertySourceLocatorAppNameCustomizedTests { this.context = new SpringApplicationBuilder(Config.class) - .web(false) + .web(WebApplicationType.NONE) .run("--spring.application.name=testConsulPropertySourceLocatorAppNameCustomized", "--spring.cloud.consul.config.name="+CONFIG_NAME, "--spring.cloud.consul.config.prefix="+ROOT); diff --git a/spring-cloud-consul-config/src/test/java/org/springframework/cloud/consul/config/ConsulPropertySourceLocatorFilesTests.java b/spring-cloud-consul-config/src/test/java/org/springframework/cloud/consul/config/ConsulPropertySourceLocatorFilesTests.java index a40ac4bf..536d0315 100644 --- a/spring-cloud-consul-config/src/test/java/org/springframework/cloud/consul/config/ConsulPropertySourceLocatorFilesTests.java +++ b/spring-cloud-consul-config/src/test/java/org/springframework/cloud/consul/config/ConsulPropertySourceLocatorFilesTests.java @@ -23,6 +23,7 @@ import java.util.UUID; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.springframework.boot.WebApplicationType; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.cloud.consul.ConsulProperties; @@ -80,7 +81,7 @@ public class ConsulPropertySourceLocatorFilesTests { this.client.setKVValue(ROOT+APP_NAME_DEV_PROPS, "foo: bar-app-dev\nmy.baz: ${foo}"); this.context = new SpringApplicationBuilder(Config.class) - .web(false) + .web(WebApplicationType.NONE) .run("--spring.application.name="+ APP_NAME, "--spring.cloud.consul.config.prefix="+ROOT, "--spring.cloud.consul.config.format=FILES", 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 1e349927..39706f82 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 @@ -24,6 +24,7 @@ import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; +import org.springframework.boot.WebApplicationType; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.cloud.consul.ConsulProperties; @@ -102,7 +103,7 @@ public class ConsulPropertySourceLocatorTests { this.context = new SpringApplicationBuilder(Config.class) - .web(false) + .web(WebApplicationType.NONE) .run("--SPRING_APPLICATION_NAME="+ APP_NAME, "--spring.cloud.consul.config.prefix="+ROOT, "spring.cloud.consul.config.watch.delay=10"); diff --git a/spring-cloud-consul-discovery/src/test/java/org/springframework/cloud/consul/discovery/configclient/ConsulConfigServerAutoConfigurationTests.java b/spring-cloud-consul-discovery/src/test/java/org/springframework/cloud/consul/discovery/configclient/ConsulConfigServerAutoConfigurationTests.java index 08464d54..25760a71 100644 --- a/spring-cloud-consul-discovery/src/test/java/org/springframework/cloud/consul/discovery/configclient/ConsulConfigServerAutoConfigurationTests.java +++ b/spring-cloud-consul-discovery/src/test/java/org/springframework/cloud/consul/discovery/configclient/ConsulConfigServerAutoConfigurationTests.java @@ -18,6 +18,7 @@ package org.springframework.cloud.consul.discovery.configclient; import org.junit.After; import org.junit.Test; +import org.springframework.boot.WebApplicationType; import org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.cloud.config.server.config.ConfigServerProperties; @@ -64,7 +65,7 @@ public class ConsulConfigServerAutoConfigurationTests { this.context = new SpringApplicationBuilder( PropertyPlaceholderAutoConfiguration.class, ConsulConfigServerAutoConfiguration.class, - ConfigServerProperties.class, ConsulDiscoveryProperties.class).web(false) + ConfigServerProperties.class, ConsulDiscoveryProperties.class).web(WebApplicationType.NONE) .properties(env).run(); }