Updates to use "spring.config.use-legacy-processing" where needed.

This commit is contained in:
spencergibb
2020-08-06 16:07:47 -04:00
parent 2e42e37677
commit c60b6dba52
3 changed files with 3 additions and 2 deletions

View File

@@ -461,8 +461,7 @@ public class EurekaClientAutoConfigurationTests {
assertThat(healthCheckHandler).isInstanceOf(EurekaHealthCheckHandler.class);
assertThat(oldEurekaClient.getHealthCheckHandler()).isSameAs(healthCheckHandler);
ContextRefresher refresher = this.context.getBean("contextRefresher",
ContextRefresher.class);
ContextRefresher refresher = this.context.getBean(ContextRefresher.class);
refresher.refresh();
EurekaClient newEurekaClient = getLazyInitEurekaClient();

View File

@@ -107,6 +107,7 @@ public class EurekaConfigServerBootstrapConfigurationTests {
// FIXME: why do I need to do this? (fails in maven build without it.
TomcatURLStreamHandlerFactory.disable();
new SpringApplicationBuilder(TestConfigDiscoveryConfiguration.class).properties(
"spring.config.use-legacy-processing=true",
"spring.cloud.config.discovery.enabled=true",
"spring.main.sources="
+ TestConfigDiscoveryBootstrapConfiguration.class.getName(),

View File

@@ -39,6 +39,7 @@ import static org.springframework.boot.test.context.SpringBootTest.WebEnvironmen
* @author Spencer Gibb
*/
@SpringBootTest(properties = { "spring.cloud.config.discovery.enabled=true",
"spring.config.use-legacy-processing=true",
"eureka.client.webclient.enabled=true",
"spring.codec.max-in-memory-size=310000" }, webEnvironment = RANDOM_PORT)
public class EurekaConfigServerBootstrapConfigurationWebClientIntegrationTests {