bindToNonScalarCollectionShouldReturnPopulatedCollection() — spring-boot Function Reference
Architecture documentation for the bindToNonScalarCollectionShouldReturnPopulatedCollection() function in CollectionBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 3dbc72a1_a82a_a6ef_1568_b03ef5cd65e8["bindToNonScalarCollectionShouldReturnPopulatedCollection()"] dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] 3dbc72a1_a82a_a6ef_1568_b03ef5cd65e8 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 725e97d2_341b_6665_84bc_9206c7185c54["put()"] 3dbc72a1_a82a_a6ef_1568_b03ef5cd65e8 -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54 3d8c903d_f744_c594_5eaa_db928a46ef92["stream()"] 3dbc72a1_a82a_a6ef_1568_b03ef5cd65e8 -->|calls| 3d8c903d_f744_c594_5eaa_db928a46ef92 style 3dbc72a1_a82a_a6ef_1568_b03ef5cd65e8 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 316–328
@Test
void bindToNonScalarCollectionShouldReturnPopulatedCollection() {
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
source.put("foo[0].value", "a");
source.put("foo[1].value", "b");
source.put("foo[2].value", "c");
this.sources.add(source);
Bindable<List<JavaBean>> target = Bindable.listOf(JavaBean.class);
List<JavaBean> result = this.binder.bind("foo", target).get();
assertThat(result).hasSize(3);
List<String> values = result.stream().map(JavaBean::getValue).toList();
assertThat(values).containsExactly("a", "b", "c");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindToNonScalarCollectionShouldReturnPopulatedCollection() do?
bindToNonScalarCollectionShouldReturnPopulatedCollection() is a function in the spring-boot codebase.
What does bindToNonScalarCollectionShouldReturnPopulatedCollection() call?
bindToNonScalarCollectionShouldReturnPopulatedCollection() calls 3 function(s): MockConfigurationPropertySource, put, stream.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free