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