bindToInstanceWithNoPropertiesShouldReturnUnbound() — spring-boot Function Reference
Architecture documentation for the bindToInstanceWithNoPropertiesShouldReturnUnbound() function in JavaBeanBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 0561e16d_0def_434e_efc5_faacabb857d6["bindToInstanceWithNoPropertiesShouldReturnUnbound()"] dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] 0561e16d_0def_434e_efc5_faacabb857d6 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] 0561e16d_0def_434e_efc5_faacabb857d6 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 76576a77_87f7_3680_8561_2923813db3c1["of()"] 0561e16d_0def_434e_efc5_faacabb857d6 -->|calls| 76576a77_87f7_3680_8561_2923813db3c1 6a01da78_cebe_7f08_01a1_3448c3f4e437["getBar()"] 0561e16d_0def_434e_efc5_faacabb857d6 -->|calls| 6a01da78_cebe_7f08_01a1_3448c3f4e437 d46fdef4_ac5a_570f_4138_8a10528ffb82["getFoo()"] 0561e16d_0def_434e_efc5_faacabb857d6 -->|calls| d46fdef4_ac5a_570f_4138_8a10528ffb82 style 0561e16d_0def_434e_efc5_faacabb857d6 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 124–134
@Test
void bindToInstanceWithNoPropertiesShouldReturnUnbound() {
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
this.sources.add(source);
ExampleDefaultsBean bean = new ExampleDefaultsBean();
BindResult<ExampleDefaultsBean> boundBean = this.binder.bind("foo",
Bindable.of(ExampleDefaultsBean.class).withExistingValue(bean));
assertThat(boundBean.isBound()).isFalse();
assertThat(bean.getFoo()).isEqualTo(123);
assertThat(bean.getBar()).isEqualTo(456);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindToInstanceWithNoPropertiesShouldReturnUnbound() do?
bindToInstanceWithNoPropertiesShouldReturnUnbound() is a function in the spring-boot codebase.
What does bindToInstanceWithNoPropertiesShouldReturnUnbound() call?
bindToInstanceWithNoPropertiesShouldReturnUnbound() calls 5 function(s): MockConfigurationPropertySource, add, getBar, getFoo, of.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free