bindToArrayWhenHasExistingCollectionShouldReplaceAllContents() — spring-boot Function Reference
Architecture documentation for the bindToArrayWhenHasExistingCollectionShouldReplaceAllContents() function in ArrayBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD ba829ea4_2fa7_5217_5bd9_743cdaa7ea4c["bindToArrayWhenHasExistingCollectionShouldReplaceAllContents()"] 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] ba829ea4_2fa7_5217_5bd9_743cdaa7ea4c -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] ba829ea4_2fa7_5217_5bd9_743cdaa7ea4c -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"] ba829ea4_2fa7_5217_5bd9_743cdaa7ea4c -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a style ba829ea4_2fa7_5217_5bd9_743cdaa7ea4c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/ArrayBinderTests.java lines 185–193
@Test
void bindToArrayWhenHasExistingCollectionShouldReplaceAllContents() {
this.sources.add(new MockConfigurationPropertySource("foo[0]", "1"));
Integer[] existing = new Integer[2];
existing[0] = 1000;
existing[1] = 1001;
Integer[] result = this.binder.bind("foo", INTEGER_ARRAY.withExistingValue(existing)).get();
assertThat(result).containsExactly(1);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindToArrayWhenHasExistingCollectionShouldReplaceAllContents() do?
bindToArrayWhenHasExistingCollectionShouldReplaceAllContents() is a function in the spring-boot codebase.
What does bindToArrayWhenHasExistingCollectionShouldReplaceAllContents() call?
bindToArrayWhenHasExistingCollectionShouldReplaceAllContents() calls 3 function(s): MockConfigurationPropertySource, add, get.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free