|
|
|
@ -719,12 +719,6 @@ class ConfigDataEnvironmentPostProcessorIntegrationTests {
|
|
|
|
|
"Config data location 'file:src/test/resources/config/0-empty/*/' contains no subdirectories");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
void runWhenOptionalWildcardLocationHasNoSubdirectories() {
|
|
|
|
|
assertThatNoException().isThrownBy(() -> this.application
|
|
|
|
|
.run("--spring.config.location=optional:file:src/test/resources/config/0-empty/*/"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
void runWhenHasMandatoryWildcardLocationThatDoesNotExist() {
|
|
|
|
|
assertThatExceptionOfType(ConfigDataLocationNotFoundException.class)
|
|
|
|
|