bindToCollectionWhenNonIterableShouldReturnPopulatedCollection() — spring-boot Function Reference
Architecture documentation for the bindToCollectionWhenNonIterableShouldReturnPopulatedCollection() function in CollectionBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 4181ddad_3004_1c55_9a85_2d8fb60bae2f["bindToCollectionWhenNonIterableShouldReturnPopulatedCollection()"] dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] 4181ddad_3004_1c55_9a85_2d8fb60bae2f -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 725e97d2_341b_6665_84bc_9206c7185c54["put()"] 4181ddad_3004_1c55_9a85_2d8fb60bae2f -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54 1aeb892c_57b9_ec83_d74d_921ad48008fa["nonIterable()"] 4181ddad_3004_1c55_9a85_2d8fb60bae2f -->|calls| 1aeb892c_57b9_ec83_d74d_921ad48008fa style 4181ddad_3004_1c55_9a85_2d8fb60bae2f 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 190–199
@Test
void bindToCollectionWhenNonIterableShouldReturnPopulatedCollection() {
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
source.put("foo[1]", "2");
source.put("foo[0]", "1");
source.put("foo[2]", "3");
this.sources.add(source.nonIterable());
List<Integer> result = this.binder.bind("foo", INTEGER_LIST).get();
assertThat(result).containsExactly(1, 2, 3);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindToCollectionWhenNonIterableShouldReturnPopulatedCollection() do?
bindToCollectionWhenNonIterableShouldReturnPopulatedCollection() is a function in the spring-boot codebase.
What does bindToCollectionWhenNonIterableShouldReturnPopulatedCollection() call?
bindToCollectionWhenNonIterableShouldReturnPopulatedCollection() calls 3 function(s): MockConfigurationPropertySource, nonIterable, put.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free