bindToJavaBeanWhenHandlerOnStartReturnsNullShouldReturnUnbound() — spring-boot Function Reference
Architecture documentation for the bindToJavaBeanWhenHandlerOnStartReturnsNullShouldReturnUnbound() function in BinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD e3518347_5a90_c302_97fa_bd8fa0866ddc["bindToJavaBeanWhenHandlerOnStartReturnsNullShouldReturnUnbound()"] 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] e3518347_5a90_c302_97fa_bd8fa0866ddc -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] e3518347_5a90_c302_97fa_bd8fa0866ddc -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 76576a77_87f7_3680_8561_2923813db3c1["of()"] e3518347_5a90_c302_97fa_bd8fa0866ddc -->|calls| 76576a77_87f7_3680_8561_2923813db3c1 a23eaeb6_e000_fe3d_8c7c_34c4ead2fed5["onStart()"] e3518347_5a90_c302_97fa_bd8fa0866ddc -->|calls| a23eaeb6_e000_fe3d_8c7c_34c4ead2fed5 style e3518347_5a90_c302_97fa_bd8fa0866ddc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/BinderTests.java lines 332–345
@Test
void bindToJavaBeanWhenHandlerOnStartReturnsNullShouldReturnUnbound() { // gh-18129
this.sources.add(new MockConfigurationPropertySource("foo.value", "bar"));
BindResult<JavaBean> result = this.binder.bind("foo", Bindable.of(JavaBean.class), new BindHandler() {
@Override
public <T> @Nullable Bindable<T> onStart(ConfigurationPropertyName name, Bindable<T> target,
BindContext context) {
return null;
}
});
assertThat(result.isBound()).isFalse();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindToJavaBeanWhenHandlerOnStartReturnsNullShouldReturnUnbound() do?
bindToJavaBeanWhenHandlerOnStartReturnsNullShouldReturnUnbound() is a function in the spring-boot codebase.
What does bindToJavaBeanWhenHandlerOnStartReturnsNullShouldReturnUnbound() call?
bindToJavaBeanWhenHandlerOnStartReturnsNullShouldReturnUnbound() calls 4 function(s): MockConfigurationPropertySource, add, of, onStart.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free