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
pull/7387/head
Phillip Webb 8 years ago
parent e5073a7172
commit 221feac3ec

@ -289,6 +289,7 @@ public class LocalDevToolsAutoConfigurationTests {
@Configuration @Configuration
@Import({ EmbeddedServletContainerAutoConfiguration.class, @Import({ EmbeddedServletContainerAutoConfiguration.class,
LocalDevToolsAutoConfiguration.class, ThymeleafAutoConfiguration.class }) LocalDevToolsAutoConfiguration.class, ThymeleafAutoConfiguration.class })
@EnableConfigurationProperties(ServerProperties.class)
public static class ConfigWithMockLiveReload { public static class ConfigWithMockLiveReload {
@Bean @Bean
@ -301,6 +302,7 @@ public class LocalDevToolsAutoConfigurationTests {
@Configuration @Configuration
@Import({ EmbeddedServletContainerAutoConfiguration.class, @Import({ EmbeddedServletContainerAutoConfiguration.class,
LocalDevToolsAutoConfiguration.class, ResourceProperties.class }) LocalDevToolsAutoConfiguration.class, ResourceProperties.class })
@EnableConfigurationProperties(ServerProperties.class)
public static class WebResourcesConfig { public static class WebResourcesConfig {
} }

Loading…
Cancel
Save