Home / Function/ bindShouldValidateIfOtherHandlersInChainIgnoreError() — spring-boot Function Reference

bindShouldValidateIfOtherHandlersInChainIgnoreError() — spring-boot Function Reference

Architecture documentation for the bindShouldValidateIfOtherHandlersInChainIgnoreError() function in ValidationBindHandlerTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  e5ffed17_5923_3acb_9776_d02f1c590504["bindShouldValidateIfOtherHandlersInChainIgnoreError()"]
  edcfde1c_7942_d700_63c3_066a4523bb0c["TestHandler()"]
  e5ffed17_5923_3acb_9776_d02f1c590504 -->|calls| edcfde1c_7942_d700_63c3_066a4523bb0c
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  e5ffed17_5923_3acb_9776_d02f1c590504 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"]
  e5ffed17_5923_3acb_9776_d02f1c590504 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e
  8297d150_846a_4cc4_47ca_e6d5a70497f3["bind()"]
  e5ffed17_5923_3acb_9776_d02f1c590504 -->|calls| 8297d150_846a_4cc4_47ca_e6d5a70497f3
  9585934b_b9d5_0a5e_94c7_a4344f67965b["withExistingValue()"]
  e5ffed17_5923_3acb_9776_d02f1c590504 -->|calls| 9585934b_b9d5_0a5e_94c7_a4344f67965b
  19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78["of()"]
  e5ffed17_5923_3acb_9776_d02f1c590504 -->|calls| 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78
  style e5ffed17_5923_3acb_9776_d02f1c590504 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 175–185

	@Test
	void bindShouldValidateIfOtherHandlersInChainIgnoreError() {
		TestHandler testHandler = new TestHandler(null);
		this.handler = new ValidationBindHandler(testHandler, this.validator);
		this.sources.add(new MockConfigurationPropertySource("foo", "hello"));
		ExampleValidatedBean bean = new ExampleValidatedBean();
		assertThatExceptionOfType(BindException.class)
			.isThrownBy(() -> this.binder.bind("foo", Bindable.of(ExampleValidatedBean.class).withExistingValue(bean),
					this.handler))
			.withCauseInstanceOf(BindValidationException.class);
	}

Domain

Subdomains

Frequently Asked Questions

What does bindShouldValidateIfOtherHandlersInChainIgnoreError() do?
bindShouldValidateIfOtherHandlersInChainIgnoreError() is a function in the spring-boot codebase.
What does bindShouldValidateIfOtherHandlersInChainIgnoreError() call?
bindShouldValidateIfOtherHandlersInChainIgnoreError() calls 6 function(s): 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