runWhenProgrammaticallySetProfilesLoadsWithSetProfilesTakePrecedenceOverDefaultProfile() — spring-boot Function Reference
Architecture documentation for the runWhenProgrammaticallySetProfilesLoadsWithSetProfilesTakePrecedenceOverDefaultProfile() function in ConfigDataEnvironmentPostProcessorIntegrationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD bbbc7549_8d6b_da91_0201_c4c83c6de30e["runWhenProgrammaticallySetProfilesLoadsWithSetProfilesTakePrecedenceOverDefaultProfile()"] fe38c8d5_f926_3c8d_1673_0d1e9faf22df["setAdditionalProfiles()"] bbbc7549_8d6b_da91_0201_c4c83c6de30e -->|calls| fe38c8d5_f926_3c8d_1673_0d1e9faf22df 61bdfef1_4c77_f177_2d1a_f452f9d7a529["getProperty()"] bbbc7549_8d6b_da91_0201_c4c83c6de30e -->|calls| 61bdfef1_4c77_f177_2d1a_f452f9d7a529 f5ecfeee_2faa_bfff_05c7_ad8e17034d42["run()"] bbbc7549_8d6b_da91_0201_c4c83c6de30e -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 style bbbc7549_8d6b_da91_0201_c4c83c6de30e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessorIntegrationTests.java lines 403–410
@Test
@WithResource(name = "application-other.properties", content = "my.property=fromotherpropertiesfile")
void runWhenProgrammaticallySetProfilesLoadsWithSetProfilesTakePrecedenceOverDefaultProfile() {
this.application.setAdditionalProfiles("other");
ConfigurableApplicationContext context = this.application.run();
String property = context.getEnvironment().getProperty("my.property");
assertThat(property).isEqualTo("fromotherpropertiesfile");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does runWhenProgrammaticallySetProfilesLoadsWithSetProfilesTakePrecedenceOverDefaultProfile() do?
runWhenProgrammaticallySetProfilesLoadsWithSetProfilesTakePrecedenceOverDefaultProfile() is a function in the spring-boot codebase.
What does runWhenProgrammaticallySetProfilesLoadsWithSetProfilesTakePrecedenceOverDefaultProfile() call?
runWhenProgrammaticallySetProfilesLoadsWithSetProfilesTakePrecedenceOverDefaultProfile() 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