bindToSetShouldNotAllowDuplicateValues() — spring-boot Function Reference
Architecture documentation for the bindToSetShouldNotAllowDuplicateValues() function in CollectionBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 8ad6d562_0a6c_80bd_65f7_d486f7592c0d["bindToSetShouldNotAllowDuplicateValues()"] dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] 8ad6d562_0a6c_80bd_65f7_d486f7592c0d -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 725e97d2_341b_6665_84bc_9206c7185c54["put()"] 8ad6d562_0a6c_80bd_65f7_d486f7592c0d -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54 ac240ac9_2716_47f9_0b41_dec96728b79b["getItemsSet()"] 8ad6d562_0a6c_80bd_65f7_d486f7592c0d -->|calls| ac240ac9_2716_47f9_0b41_dec96728b79b style 8ad6d562_0a6c_80bd_65f7_d486f7592c0d 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 384–392
@Test
void bindToSetShouldNotAllowDuplicateValues() {
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
source.put("foo.items-set", "a,b,c,c");
this.sources.add(source);
ExampleCollectionBean result = this.binder.bind("foo", ExampleCollectionBean.class).get();
assertThat(result.getItemsSet()).hasSize(3);
assertThat(result.getItemsSet()).containsExactly("a", "b", "c");
}
Domain
Subdomains
Calls
- MockConfigurationPropertySource()
- getItemsSet()
- put()
Source
Frequently Asked Questions
What does bindToSetShouldNotAllowDuplicateValues() do?
bindToSetShouldNotAllowDuplicateValues() is a function in the spring-boot codebase.
What does bindToSetShouldNotAllowDuplicateValues() call?
bindToSetShouldNotAllowDuplicateValues() calls 3 function(s): MockConfigurationPropertySource, getItemsSet, put.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free