bindShouldFailWithAccessToOrigin() — spring-boot Function Reference
Architecture documentation for the bindShouldFailWithAccessToOrigin() function in ValidationBindHandlerTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD cbece0aa_c631_e26b_29b3_7290138b6982["bindShouldFailWithAccessToOrigin()"] 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] cbece0aa_c631_e26b_29b3_7290138b6982 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] cbece0aa_c631_e26b_29b3_7290138b6982 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 0f6888bd_415c_a046_17eb_844b4cf7637e["bindAndExpectValidationError()"] cbece0aa_c631_e26b_29b3_7290138b6982 -->|calls| 0f6888bd_415c_a046_17eb_844b4cf7637e 8297d150_846a_4cc4_47ca_e6d5a70497f3["bind()"] cbece0aa_c631_e26b_29b3_7290138b6982 -->|calls| 8297d150_846a_4cc4_47ca_e6d5a70497f3 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78["of()"] cbece0aa_c631_e26b_29b3_7290138b6982 -->|calls| 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78 style cbece0aa_c631_e26b_29b3_7290138b6982 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 103–110
@Test
void bindShouldFailWithAccessToOrigin() {
this.sources.add(new MockConfigurationPropertySource("foo.age", 4, "file"));
BindValidationException cause = bindAndExpectValidationError(() -> this.binder
.bind(ConfigurationPropertyName.of("foo"), Bindable.of(ExampleValidatedBean.class), this.handler));
ObjectError objectError = cause.getValidationErrors().getAllErrors().get(0);
assertThat(Origin.from(objectError)).hasToString("file");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindShouldFailWithAccessToOrigin() do?
bindShouldFailWithAccessToOrigin() is a function in the spring-boot codebase.
What does bindShouldFailWithAccessToOrigin() call?
bindShouldFailWithAccessToOrigin() calls 5 function(s): MockConfigurationPropertySource, add, bind, bindAndExpectValidationError, of.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free