parentFirstWithDifferentProfile() — spring-boot Function Reference
Architecture documentation for the parentFirstWithDifferentProfile() function in SpringApplicationBuilderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD fd7f2185_3a87_d0b2_5f33_529f77c81fe0["parentFirstWithDifferentProfile()"] 3dc59be6_081a_34fd_0727_a7b4669b8750["assertThat()"] fd7f2185_3a87_d0b2_5f33_529f77c81fe0 -->|calls| 3dc59be6_081a_34fd_0727_a7b4669b8750 546343f2_f93a_0dc3_7a91_7016e75078f5["getParent()"] fd7f2185_3a87_d0b2_5f33_529f77c81fe0 -->|calls| 546343f2_f93a_0dc3_7a91_7016e75078f5 f5ecfeee_2faa_bfff_05c7_ad8e17034d42["run()"] fd7f2185_3a87_d0b2_5f33_529f77c81fe0 -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 style fd7f2185_3a87_d0b2_5f33_529f77c81fe0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/builder/SpringApplicationBuilderTests.java lines 232–244
@Test
void parentFirstWithDifferentProfile() {
SpringApplicationBuilder application = new SpringApplicationBuilder(ExampleConfig.class).profiles("node")
.properties("transport=redis")
.child(ChildConfig.class)
.profiles("admin")
.web(WebApplicationType.NONE);
this.context = application.run();
assertThat(this.context.getEnvironment().acceptsProfiles(Profiles.of("node", "admin"))).isTrue();
ApplicationContext parent = this.context.getParent();
assertThat(parent).isNotNull();
assertThat(parent.getEnvironment().acceptsProfiles(Profiles.of("admin"))).isFalse();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does parentFirstWithDifferentProfile() do?
parentFirstWithDifferentProfile() is a function in the spring-boot codebase.
What does parentFirstWithDifferentProfile() call?
parentFirstWithDifferentProfile() calls 3 function(s): assertThat, getParent, run.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free