From a2530ad5f173f1825b9c5cb4a8ea1173ecdfba9e Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 26 Aug 2020 21:06:09 -0700 Subject: [PATCH] Fix global optional config data opt-out test See gh-23097 --- .../ConfigDataEnvironmentPostProcessorIntegrationTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); }