bindToClassWhenNoDefaultConstructorShouldBind() — spring-boot Function Reference
Architecture documentation for the bindToClassWhenNoDefaultConstructorShouldBind() function in JavaBeanBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD d3f35d8a_74d5_715a_8e77_f672a4d02423["bindToClassWhenNoDefaultConstructorShouldBind()"] dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] d3f35d8a_74d5_715a_8e77_f672a4d02423 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 725e97d2_341b_6665_84bc_9206c7185c54["put()"] d3f35d8a_74d5_715a_8e77_f672a4d02423 -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] d3f35d8a_74d5_715a_8e77_f672a4d02423 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 76576a77_87f7_3680_8561_2923813db3c1["of()"] d3f35d8a_74d5_715a_8e77_f672a4d02423 -->|calls| 76576a77_87f7_3680_8561_2923813db3c1 241955c1_e7fb_47f5_5e8e_e359b477a0ed["get()"] d3f35d8a_74d5_715a_8e77_f672a4d02423 -->|calls| 241955c1_e7fb_47f5_5e8e_e359b477a0ed style d3f35d8a_74d5_715a_8e77_f672a4d02423 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 362–372
@Test
void bindToClassWhenNoDefaultConstructorShouldBind() {
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
source.put("foo.value", "bar");
this.sources.add(source);
BindResult<ExampleWithNonDefaultConstructor> bean = this.binder.bind("foo",
Bindable.of(ExampleWithNonDefaultConstructor.class));
assertThat(bean.isBound()).isTrue();
ExampleWithNonDefaultConstructor boundBean = bean.get();
assertThat(boundBean.getValue()).isEqualTo("bar");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindToClassWhenNoDefaultConstructorShouldBind() do?
bindToClassWhenNoDefaultConstructorShouldBind() is a function in the spring-boot codebase.
What does bindToClassWhenNoDefaultConstructorShouldBind() call?
bindToClassWhenNoDefaultConstructorShouldBind() calls 5 function(s): MockConfigurationPropertySource, add, get, of, put.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free