Fix test
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
customprofile-customdefault=true
|
||||
@@ -0,0 +1,2 @@
|
||||
spring.profiles.active=customdefault
|
||||
customprofile=true
|
||||
Reference in New Issue
Block a user