bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundCollectionProperties() — spring-boot Function Reference
Architecture documentation for the bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundCollectionProperties() function in NoUnboundElementsBindHandlerTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 31b34bf8_88d5_ae12_736f_dd439789443d["bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundCollectionProperties()"] dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] 31b34bf8_88d5_ae12_736f_dd439789443d -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 725e97d2_341b_6665_84bc_9206c7185c54["put()"] 31b34bf8_88d5_ae12_736f_dd439789443d -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] 31b34bf8_88d5_ae12_736f_dd439789443d -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 bdf1886c_19f9_9cc1_5bff_886f1b1e2835["Binder()"] 31b34bf8_88d5_ae12_736f_dd439789443d -->|calls| bdf1886c_19f9_9cc1_5bff_886f1b1e2835 8297d150_846a_4cc4_47ca_e6d5a70497f3["bind()"] 31b34bf8_88d5_ae12_736f_dd439789443d -->|calls| 8297d150_846a_4cc4_47ca_e6d5a70497f3 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78["of()"] 31b34bf8_88d5_ae12_736f_dd439789443d -->|calls| 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78 c90d60de_6e4d_b157_5121_acbc78d427f0["get()"] 31b34bf8_88d5_ae12_736f_dd439789443d -->|calls| c90d60de_6e4d_b157_5121_acbc78d427f0 8aae0c6e_34f9_ecd9_7a22_75b00955e2cf["getFoo()"] 31b34bf8_88d5_ae12_736f_dd439789443d -->|calls| 8aae0c6e_34f9_ecd9_7a22_75b00955e2cf style 31b34bf8_88d5_ae12_736f_dd439789443d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/handler/NoUnboundElementsBindHandlerTests.java lines 112–125
@Test
void bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundCollectionProperties() {
MockConfigurationPropertySource source1 = new MockConfigurationPropertySource();
source1.put("example.foo[0]", "bar");
MockConfigurationPropertySource source2 = new MockConfigurationPropertySource();
source2.put("example.foo[0]", "bar");
source2.put("example.foo[1]", "baz");
this.sources.add(source1);
this.sources.add(source2);
this.binder = new Binder(this.sources);
NoUnboundElementsBindHandler handler = new NoUnboundElementsBindHandler();
ExampleWithList bound = this.binder.bind("example", Bindable.of(ExampleWithList.class), handler).get();
assertThat(bound.getFoo()).containsExactly("bar");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundCollectionProperties() do?
bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundCollectionProperties() is a function in the spring-boot codebase.
What does bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundCollectionProperties() call?
bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundCollectionProperties() calls 8 function(s): Binder, MockConfigurationPropertySource, add, bind, get, getFoo, of, put.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free