diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessorIntegrationTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessorIntegrationTests.java index 431eb3b102..1d62efcaca 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessorIntegrationTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessorIntegrationTests.java @@ -550,8 +550,8 @@ class ConfigDataEnvironmentPostProcessorIntegrationTests { } @Test - void runWhenHasNonOptionalImportAndFailFalsePropertyIgnoresException() { - this.application.run("--spring.config.fail-on-location-not-found=false", + void runWhenHasNonOptionalImportAndAllOptionalPropertyIgnoresException() { + this.application.run("--spring.config.all-locations-optional=true", "--spring.config.location=classpath:missing-appplication.properties"); }