bindShouldValidateIfOtherHandlersInChainReplaceErrorWithResult() — spring-boot Function Reference
Architecture documentation for the bindShouldValidateIfOtherHandlersInChainReplaceErrorWithResult() function in ValidationBindHandlerTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 3750078d_b3dd_62a1_abb5_c0cdb70bfe7d["bindShouldValidateIfOtherHandlersInChainReplaceErrorWithResult()"] edcfde1c_7942_d700_63c3_066a4523bb0c["TestHandler()"] 3750078d_b3dd_62a1_abb5_c0cdb70bfe7d -->|calls| edcfde1c_7942_d700_63c3_066a4523bb0c a26fa6c1_e826_94dc_6a61_39b82b0fb3fe["ExampleValidatedBeanSubclass()"] 3750078d_b3dd_62a1_abb5_c0cdb70bfe7d -->|calls| a26fa6c1_e826_94dc_6a61_39b82b0fb3fe 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] 3750078d_b3dd_62a1_abb5_c0cdb70bfe7d -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] 3750078d_b3dd_62a1_abb5_c0cdb70bfe7d -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 8297d150_846a_4cc4_47ca_e6d5a70497f3["bind()"] 3750078d_b3dd_62a1_abb5_c0cdb70bfe7d -->|calls| 8297d150_846a_4cc4_47ca_e6d5a70497f3 9585934b_b9d5_0a5e_94c7_a4344f67965b["withExistingValue()"] 3750078d_b3dd_62a1_abb5_c0cdb70bfe7d -->|calls| 9585934b_b9d5_0a5e_94c7_a4344f67965b 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78["of()"] 3750078d_b3dd_62a1_abb5_c0cdb70bfe7d -->|calls| 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78 style 3750078d_b3dd_62a1_abb5_c0cdb70bfe7d 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 187–200
@Test
void bindShouldValidateIfOtherHandlersInChainReplaceErrorWithResult() {
TestHandler testHandler = new TestHandler(new ExampleValidatedBeanSubclass());
this.handler = new ValidationBindHandler(testHandler, this.validator);
this.sources.add(new MockConfigurationPropertySource("foo", "hello"));
this.sources.add(new MockConfigurationPropertySource("foo.age", "bad"));
this.sources.add(new MockConfigurationPropertySource("foo.years", "99"));
ExampleValidatedBean bean = new ExampleValidatedBean();
assertThatExceptionOfType(BindException.class)
.isThrownBy(() -> this.binder.bind("foo", Bindable.of(ExampleValidatedBean.class).withExistingValue(bean),
this.handler))
.withCauseInstanceOf(BindValidationException.class)
.satisfies((ex) -> assertThat(ex.getCause()).hasMessageContaining("years"));
}
Domain
Subdomains
Calls
- ExampleValidatedBeanSubclass()
- MockConfigurationPropertySource()
- TestHandler()
- add()
- bind()
- of()
- withExistingValue()
Source
Frequently Asked Questions
What does bindShouldValidateIfOtherHandlersInChainReplaceErrorWithResult() do?
bindShouldValidateIfOtherHandlersInChainReplaceErrorWithResult() is a function in the spring-boot codebase.
What does bindShouldValidateIfOtherHandlersInChainReplaceErrorWithResult() call?
bindShouldValidateIfOtherHandlersInChainReplaceErrorWithResult() calls 7 function(s): ExampleValidatedBeanSubclass, MockConfigurationPropertySource, TestHandler, add, bind, of, withExistingValue.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free