bindToClassShouldBindHierarchy() — spring-boot Function Reference
Architecture documentation for the bindToClassShouldBindHierarchy() function in JavaBeanBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 0d2c92b1_9a35_d420_8f0d_4c28e0ab334d["bindToClassShouldBindHierarchy()"] dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] 0d2c92b1_9a35_d420_8f0d_4c28e0ab334d -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 725e97d2_341b_6665_84bc_9206c7185c54["put()"] 0d2c92b1_9a35_d420_8f0d_4c28e0ab334d -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] 0d2c92b1_9a35_d420_8f0d_4c28e0ab334d -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 76576a77_87f7_3680_8561_2923813db3c1["of()"] 0d2c92b1_9a35_d420_8f0d_4c28e0ab334d -->|calls| 76576a77_87f7_3680_8561_2923813db3c1 241955c1_e7fb_47f5_5e8e_e359b477a0ed["get()"] 0d2c92b1_9a35_d420_8f0d_4c28e0ab334d -->|calls| 241955c1_e7fb_47f5_5e8e_e359b477a0ed 9a88f17f_9a4e_a23e_eed4_095ba44cf45a["getIntValue()"] 0d2c92b1_9a35_d420_8f0d_4c28e0ab334d -->|calls| 9a88f17f_9a4e_a23e_eed4_095ba44cf45a 61531d5a_a212_0947_2175_4e40684d01a2["getLongValue()"] 0d2c92b1_9a35_d420_8f0d_4c28e0ab334d -->|calls| 61531d5a_a212_0947_2175_4e40684d01a2 style 0d2c92b1_9a35_d420_8f0d_4c28e0ab334d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/JavaBeanBinderTests.java lines 389–398
@Test
void bindToClassShouldBindHierarchy() {
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
source.put("foo.int-value", "123");
source.put("foo.long-value", "456");
this.sources.add(source);
ExampleSubclassBean bean = this.binder.bind("foo", Bindable.of(ExampleSubclassBean.class)).get();
assertThat(bean.getIntValue()).isEqualTo(123);
assertThat(bean.getLongValue()).isEqualTo(456);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindToClassShouldBindHierarchy() do?
bindToClassShouldBindHierarchy() is a function in the spring-boot codebase.
What does bindToClassShouldBindHierarchy() call?
bindToClassShouldBindHierarchy() calls 7 function(s): MockConfigurationPropertySource, add, get, getIntValue, getLongValue, of, put.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free