withChildrenAfterProfileActivationMovesProfileSpecificChildren() — spring-boot Function Reference
Architecture documentation for the withChildrenAfterProfileActivationMovesProfileSpecificChildren() function in ConfigDataEnvironmentContributorTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD de2b2f20_af26_ef78_1668_58aead61731c["withChildrenAfterProfileActivationMovesProfileSpecificChildren()"] 882915e3_c8e7_394f_7651_c0ab8564a66b["createBoundContributor()"] de2b2f20_af26_ef78_1668_58aead61731c -->|calls| 882915e3_c8e7_394f_7651_c0ab8564a66b d42a2b1e_13eb_6793_637c_9ed7b7139a08["TestResource()"] de2b2f20_af26_ef78_1668_58aead61731c -->|calls| d42a2b1e_13eb_6793_637c_9ed7b7139a08 31c22dfc_0e43_3b4f_dc24_eafdbb67c8ca["asLocationsList()"] de2b2f20_af26_ef78_1668_58aead61731c -->|calls| 31c22dfc_0e43_3b4f_dc24_eafdbb67c8ca style de2b2f20_af26_ef78_1668_58aead61731c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributorTests.java lines 250–263
@Test
void withChildrenAfterProfileActivationMovesProfileSpecificChildren() {
ConfigDataEnvironmentContributor root = createBoundContributor("root");
ConfigDataEnvironmentContributor child1 = createBoundContributor("child1");
ConfigDataEnvironmentContributor grandchild = createBoundContributor(new TestResource("grandchild"),
new ConfigData(Collections.singleton(new MockPropertySource()),
PropertySourceOptions.always(Option.PROFILE_SPECIFIC)),
0);
child1 = child1.withChildren(ImportPhase.BEFORE_PROFILE_ACTIVATION, Collections.singletonList(grandchild));
root = root.withChildren(ImportPhase.BEFORE_PROFILE_ACTIVATION, Collections.singletonList(child1));
ConfigDataEnvironmentContributor child2 = createBoundContributor("child2");
root = root.withChildren(ImportPhase.AFTER_PROFILE_ACTIVATION, Collections.singletonList(child2));
assertThat(asLocationsList(root.iterator())).containsExactly("grandchild", "child2", "child1", "root");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does withChildrenAfterProfileActivationMovesProfileSpecificChildren() do?
withChildrenAfterProfileActivationMovesProfileSpecificChildren() is a function in the spring-boot codebase.
What does withChildrenAfterProfileActivationMovesProfileSpecificChildren() call?
withChildrenAfterProfileActivationMovesProfileSpecificChildren() calls 3 function(s): TestResource, asLocationsList, createBoundContributor.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free