bindShouldFailWithHandler() — spring-boot Function Reference
Architecture documentation for the bindShouldFailWithHandler() function in ValidationBindHandlerTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 151dee64_574b_eda8_368f_c01aa8fdb3e7["bindShouldFailWithHandler()"] 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] 151dee64_574b_eda8_368f_c01aa8fdb3e7 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] 151dee64_574b_eda8_368f_c01aa8fdb3e7 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 8297d150_846a_4cc4_47ca_e6d5a70497f3["bind()"] 151dee64_574b_eda8_368f_c01aa8fdb3e7 -->|calls| 8297d150_846a_4cc4_47ca_e6d5a70497f3 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78["of()"] 151dee64_574b_eda8_368f_c01aa8fdb3e7 -->|calls| 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78 style 151dee64_574b_eda8_368f_c01aa8fdb3e7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/validation/ValidationBindHandlerTests.java lines 87–93
@Test
void bindShouldFailWithHandler() {
this.sources.add(new MockConfigurationPropertySource("foo.age", 4));
assertThatExceptionOfType(BindException.class)
.isThrownBy(() -> this.binder.bind("foo", Bindable.of(ExampleValidatedBean.class), this.handler))
.withCauseInstanceOf(BindValidationException.class);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindShouldFailWithHandler() do?
bindShouldFailWithHandler() is a function in the spring-boot codebase.
What does bindShouldFailWithHandler() call?
bindShouldFailWithHandler() calls 4 function(s): MockConfigurationPropertySource, add, bind, of.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free