bindToClassShouldCreateBoundBean() — spring-boot Function Reference
Architecture documentation for the bindToClassShouldCreateBoundBean() function in JavaBeanBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD a5e04912_8b01_2da9_bce7_179705210e7d["bindToClassShouldCreateBoundBean()"] dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] a5e04912_8b01_2da9_bce7_179705210e7d -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 725e97d2_341b_6665_84bc_9206c7185c54["put()"] a5e04912_8b01_2da9_bce7_179705210e7d -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] a5e04912_8b01_2da9_bce7_179705210e7d -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 76576a77_87f7_3680_8561_2923813db3c1["of()"] a5e04912_8b01_2da9_bce7_179705210e7d -->|calls| 76576a77_87f7_3680_8561_2923813db3c1 241955c1_e7fb_47f5_5e8e_e359b477a0ed["get()"] a5e04912_8b01_2da9_bce7_179705210e7d -->|calls| 241955c1_e7fb_47f5_5e8e_e359b477a0ed 8d9774ec_a690_948a_2152_e2f6fa8dac82["getStringValue()"] a5e04912_8b01_2da9_bce7_179705210e7d -->|calls| 8d9774ec_a690_948a_2152_e2f6fa8dac82 bac02bab_1710_3bc3_d7aa_a5b605a5361a["getEnumValue()"] a5e04912_8b01_2da9_bce7_179705210e7d -->|calls| bac02bab_1710_3bc3_d7aa_a5b605a5361a 9a88f17f_9a4e_a23e_eed4_095ba44cf45a["getIntValue()"] a5e04912_8b01_2da9_bce7_179705210e7d -->|calls| 9a88f17f_9a4e_a23e_eed4_095ba44cf45a 61531d5a_a212_0947_2175_4e40684d01a2["getLongValue()"] a5e04912_8b01_2da9_bce7_179705210e7d -->|calls| 61531d5a_a212_0947_2175_4e40684d01a2 style a5e04912_8b01_2da9_bce7_179705210e7d 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 64–77
@Test
void bindToClassShouldCreateBoundBean() {
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
source.put("foo.int-value", "12");
source.put("foo.long-value", "34");
source.put("foo.string-value", "foo");
source.put("foo.enum-value", "foo-bar");
this.sources.add(source);
ExampleValueBean bean = this.binder.bind("foo", Bindable.of(ExampleValueBean.class)).get();
assertThat(bean.getIntValue()).isEqualTo(12);
assertThat(bean.getLongValue()).isEqualTo(34);
assertThat(bean.getStringValue()).isEqualTo("foo");
assertThat(bean.getEnumValue()).isEqualTo(ExampleEnum.FOO_BAR);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does bindToClassShouldCreateBoundBean() do?
bindToClassShouldCreateBoundBean() is a function in the spring-boot codebase.
What does bindToClassShouldCreateBoundBean() call?
bindToClassShouldCreateBoundBean() calls 9 function(s): MockConfigurationPropertySource, add, get, getEnumValue, getIntValue, getLongValue, getStringValue, of, and 1 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free