From 221feac3ec1d1279a290ee94a521fe187ec55ef5 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Fri, 4 Nov 2016 12:24:50 -0700 Subject: [PATCH] User random server port in devtools tests Update `LocalDevToolsAutoConfigurationTests` to ensure that a random server port is used rather than 8080. Fixes gh-7268 See gh-7039 --- .../autoconfigure/LocalDevToolsAutoConfigurationTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfigurationTests.java b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfigurationTests.java index eab60621d5..9d16010d00 100644 --- a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfigurationTests.java +++ b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfigurationTests.java @@ -289,6 +289,7 @@ public class LocalDevToolsAutoConfigurationTests { @Configuration @Import({ EmbeddedServletContainerAutoConfiguration.class, LocalDevToolsAutoConfiguration.class, ThymeleafAutoConfiguration.class }) + @EnableConfigurationProperties(ServerProperties.class) public static class ConfigWithMockLiveReload { @Bean @@ -301,6 +302,7 @@ public class LocalDevToolsAutoConfigurationTests { @Configuration @Import({ EmbeddedServletContainerAutoConfiguration.class, LocalDevToolsAutoConfiguration.class, ResourceProperties.class }) + @EnableConfigurationProperties(ServerProperties.class) public static class WebResourcesConfig { }