bindToListShouldAllowDuplicateValues() — spring-boot Function Reference
Architecture documentation for the bindToListShouldAllowDuplicateValues() function in CollectionBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 8527798b_3154_c5bc_6d27_c3cbc09f1028["bindToListShouldAllowDuplicateValues()"] dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] 8527798b_3154_c5bc_6d27_c3cbc09f1028 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 725e97d2_341b_6665_84bc_9206c7185c54["put()"] 8527798b_3154_c5bc_6d27_c3cbc09f1028 -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54 1892b500_02e7_11fb_fdac_53e2290ba004["getItems()"] 8527798b_3154_c5bc_6d27_c3cbc09f1028 -->|calls| 1892b500_02e7_11fb_fdac_53e2290ba004 style 8527798b_3154_c5bc_6d27_c3cbc09f1028 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/CollectionBinderTests.java lines 374–382
@Test
void bindToListShouldAllowDuplicateValues() {
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
source.put("foo.items", "a,b,c,c");
this.sources.add(source);
ExampleCollectionBean result = this.binder.bind("foo", ExampleCollectionBean.class).get();
assertThat(result.getItems()).hasSize(5);
assertThat(result.getItems()).containsExactly("a", "b", "c", "c", "d");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindToListShouldAllowDuplicateValues() do?
bindToListShouldAllowDuplicateValues() is a function in the spring-boot codebase.
What does bindToListShouldAllowDuplicateValues() call?
bindToListShouldAllowDuplicateValues() calls 3 function(s): MockConfigurationPropertySource, getItems, put.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free