This commit is contained in:
Madhura Bhave
2020-08-05 14:59:27 -07:00
parent b9abcf1615
commit 5f386e456b
3 changed files with 5 additions and 1 deletions

View File

@@ -421,7 +421,8 @@ class ConfigDataEnvironmentPostProcessorIntegrationTests {
@Test
void runWhenCustomDefaultProfileSameAsActiveFromFileActivatesProfile() {
ConfigurableApplicationContext context = this.application.run("--spring.profiles.default=customdefault",
ConfigurableApplicationContext context = this.application.run(
"--spring.config.location=classpath:configdata/profiles/", "--spring.profiles.default=customdefault",
"--spring.config.name=customprofile");
ConfigurableEnvironment environment = context.getEnvironment();
assertThat(environment.containsProperty("customprofile")).isTrue();

View File

@@ -0,0 +1 @@
customprofile-customdefault=true

View File

@@ -0,0 +1,2 @@
spring.profiles.active=customdefault
customprofile=true