bindToClassWhenHasNoPrefixShouldCreateBoundBean() — spring-boot Function Reference
Architecture documentation for the bindToClassWhenHasNoPrefixShouldCreateBoundBean() function in JavaBeanBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD b72f43dd_f15a_dfd3_a5d5_eca1d58e0201["bindToClassWhenHasNoPrefixShouldCreateBoundBean()"] dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] b72f43dd_f15a_dfd3_a5d5_eca1d58e0201 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 725e97d2_341b_6665_84bc_9206c7185c54["put()"] b72f43dd_f15a_dfd3_a5d5_eca1d58e0201 -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] b72f43dd_f15a_dfd3_a5d5_eca1d58e0201 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 76576a77_87f7_3680_8561_2923813db3c1["of()"] b72f43dd_f15a_dfd3_a5d5_eca1d58e0201 -->|calls| 76576a77_87f7_3680_8561_2923813db3c1 241955c1_e7fb_47f5_5e8e_e359b477a0ed["get()"] b72f43dd_f15a_dfd3_a5d5_eca1d58e0201 -->|calls| 241955c1_e7fb_47f5_5e8e_e359b477a0ed 8d9774ec_a690_948a_2152_e2f6fa8dac82["getStringValue()"] b72f43dd_f15a_dfd3_a5d5_eca1d58e0201 -->|calls| 8d9774ec_a690_948a_2152_e2f6fa8dac82 bac02bab_1710_3bc3_d7aa_a5b605a5361a["getEnumValue()"] b72f43dd_f15a_dfd3_a5d5_eca1d58e0201 -->|calls| bac02bab_1710_3bc3_d7aa_a5b605a5361a 9a88f17f_9a4e_a23e_eed4_095ba44cf45a["getIntValue()"] b72f43dd_f15a_dfd3_a5d5_eca1d58e0201 -->|calls| 9a88f17f_9a4e_a23e_eed4_095ba44cf45a 61531d5a_a212_0947_2175_4e40684d01a2["getLongValue()"] b72f43dd_f15a_dfd3_a5d5_eca1d58e0201 -->|calls| 61531d5a_a212_0947_2175_4e40684d01a2 style b72f43dd_f15a_dfd3_a5d5_eca1d58e0201 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 89–103
@Test
void bindToClassWhenHasNoPrefixShouldCreateBoundBean() {
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
source.put("int-value", "12");
source.put("long-value", "34");
source.put("string-value", "foo");
source.put("enum-value", "foo-bar");
this.sources.add(source);
ExampleValueBean bean = this.binder.bind(ConfigurationPropertyName.of(""), 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 bindToClassWhenHasNoPrefixShouldCreateBoundBean() do?
bindToClassWhenHasNoPrefixShouldCreateBoundBean() is a function in the spring-boot codebase.
What does bindToClassWhenHasNoPrefixShouldCreateBoundBean() call?
bindToClassWhenHasNoPrefixShouldCreateBoundBean() 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