bindToBeanWithNestedCollectionShouldPopulateCollection() — spring-boot Function Reference
Architecture documentation for the bindToBeanWithNestedCollectionShouldPopulateCollection() function in CollectionBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 17e45e2c_8a68_3b47_d82e_97767909dc1a["bindToBeanWithNestedCollectionShouldPopulateCollection()"] dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] 17e45e2c_8a68_3b47_d82e_97767909dc1a -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 725e97d2_341b_6665_84bc_9206c7185c54["put()"] 17e45e2c_8a68_3b47_d82e_97767909dc1a -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54 f4b76c1c_abdc_fe17_d6c1_88412a0633e7["of()"] 17e45e2c_8a68_3b47_d82e_97767909dc1a -->|calls| f4b76c1c_abdc_fe17_d6c1_88412a0633e7 b36de6d8_b985_12e4_b731_db390fd85040["getValue()"] 17e45e2c_8a68_3b47_d82e_97767909dc1a -->|calls| b36de6d8_b985_12e4_b731_db390fd85040 ae3e8839_c004_9959_6b5f_62134eab2a0f["getFoos()"] 17e45e2c_8a68_3b47_d82e_97767909dc1a -->|calls| ae3e8839_c004_9959_6b5f_62134eab2a0f style 17e45e2c_8a68_3b47_d82e_97767909dc1a 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 394–408
@Test
void bindToBeanWithNestedCollectionShouldPopulateCollection() {
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
source.put("foo.value", "one");
source.put("foo.foos[0].value", "two");
source.put("foo.foos[1].value", "three");
this.sources.add(source);
Bindable<BeanWithNestedCollection> target = Bindable.of(BeanWithNestedCollection.class);
BeanWithNestedCollection foo = this.binder.bind("foo", target).get();
assertThat(foo.getValue()).isEqualTo("one");
List<BeanWithNestedCollection> foos = foo.getFoos();
assertThat(foos).isNotNull();
assertThat(foos.get(0).getValue()).isEqualTo("two");
assertThat(foos.get(1).getValue()).isEqualTo("three");
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does bindToBeanWithNestedCollectionShouldPopulateCollection() do?
bindToBeanWithNestedCollectionShouldPopulateCollection() is a function in the spring-boot codebase.
What does bindToBeanWithNestedCollectionShouldPopulateCollection() call?
bindToBeanWithNestedCollectionShouldPopulateCollection() calls 5 function(s): MockConfigurationPropertySource, getFoos, getValue, of, put.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free