runWhenHasAndProfileExpressionLoadsExpectedProperties() — spring-boot Function Reference
Architecture documentation for the runWhenHasAndProfileExpressionLoadsExpectedProperties() function in ConfigDataEnvironmentPostProcessorIntegrationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD e19a0255_9a7a_0629_15f8_527ecaa7abb1["runWhenHasAndProfileExpressionLoadsExpectedProperties()"] fe38c8d5_f926_3c8d_1673_0d1e9faf22df["setAdditionalProfiles()"] e19a0255_9a7a_0629_15f8_527ecaa7abb1 -->|calls| fe38c8d5_f926_3c8d_1673_0d1e9faf22df 61bdfef1_4c77_f177_2d1a_f452f9d7a529["getProperty()"] e19a0255_9a7a_0629_15f8_527ecaa7abb1 -->|calls| 61bdfef1_4c77_f177_2d1a_f452f9d7a529 f5ecfeee_2faa_bfff_05c7_ad8e17034d42["run()"] e19a0255_9a7a_0629_15f8_527ecaa7abb1 -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 style e19a0255_9a7a_0629_15f8_527ecaa7abb1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessorIntegrationTests.java lines 528–546
@Test
@WithResource(name = "application.yaml", content = """
---
my:
property: fromyamlfile
---
spring.config.activate.on-profile: dev & other
my:
property: devandother
---
spring.config.activate.on-profile: (dev | other) & another
my:
property: devorotherandanother
""")
void runWhenHasAndProfileExpressionLoadsExpectedProperties() {
this.application.setAdditionalProfiles("dev", "other");
ConfigurableApplicationContext context = this.application.run();
assertThat(context.getEnvironment().getProperty("my.property")).isEqualTo("devandother");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does runWhenHasAndProfileExpressionLoadsExpectedProperties() do?
runWhenHasAndProfileExpressionLoadsExpectedProperties() is a function in the spring-boot codebase.
What does runWhenHasAndProfileExpressionLoadsExpectedProperties() call?
runWhenHasAndProfileExpressionLoadsExpectedProperties() calls 3 function(s): getProperty, run, setAdditionalProfiles.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free