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

bindAndExpectValidationError() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  0f6888bd_415c_a046_17eb_844b4cf7637e["bindAndExpectValidationError()"]
  cbece0aa_c631_e26b_29b3_7290138b6982["bindShouldFailWithAccessToOrigin()"]
  cbece0aa_c631_e26b_29b3_7290138b6982 -->|calls| 0f6888bd_415c_a046_17eb_844b4cf7637e
  95865569_4eb0_df1a_2861_76ba539f87cc["bindShouldFailWithAccessToBoundProperties()"]
  95865569_4eb0_df1a_2861_76ba539f87cc -->|calls| 0f6888bd_415c_a046_17eb_844b4cf7637e
  322caa42_72f7_2d19_b0b0_2dd1bade0865["bindShouldFailWithAccessToNameAndValue()"]
  322caa42_72f7_2d19_b0b0_2dd1bade0865 -->|calls| 0f6888bd_415c_a046_17eb_844b4cf7637e
  5201addc_7302_9bd8_0c8f_f282f0fa0752["bindShouldFailIfExistingValueIsInvalid()"]
  5201addc_7302_9bd8_0c8f_f282f0fa0752 -->|calls| 0f6888bd_415c_a046_17eb_844b4cf7637e
  ad0142e5_2e6d_d36f_a8f6_3c99298ba8c0["bindShouldValidateWithoutAnnotation()"]
  ad0142e5_2e6d_d36f_a8f6_3c99298ba8c0 -->|calls| 0f6888bd_415c_a046_17eb_844b4cf7637e
  d94a0f6d_a90b_0369_9d8f_7f77cae6eb16["validationErrorsForCamelCaseFieldsShouldContainRejectedValue()"]
  d94a0f6d_a90b_0369_9d8f_7f77cae6eb16 -->|calls| 0f6888bd_415c_a046_17eb_844b4cf7637e
  5e01f91c_727e_aa94_190f_6a52c4974259["validationShouldBeSkippedIfPreviousValidationErrorPresent()"]
  5e01f91c_727e_aa94_190f_6a52c4974259 -->|calls| 0f6888bd_415c_a046_17eb_844b4cf7637e
  style 0f6888bd_415c_a046_17eb_844b4cf7637e 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 267–277

	private BindValidationException bindAndExpectValidationError(Runnable action) {
		try {
			action.run();
		}
		catch (BindException ex) {
			Throwable cause = ex.getCause();
			assertThat(cause).isNotNull();
			return (BindValidationException) cause;
		}
		throw new IllegalStateException("Did not throw");
	}

Domain

Subdomains

Frequently Asked Questions

What does bindAndExpectValidationError() do?
bindAndExpectValidationError() is a function in the spring-boot codebase.
What calls bindAndExpectValidationError()?
bindAndExpectValidationError() is called by 7 function(s): bindShouldFailIfExistingValueIsInvalid, bindShouldFailWithAccessToBoundProperties, bindShouldFailWithAccessToNameAndValue, bindShouldFailWithAccessToOrigin, bindShouldValidateWithoutAnnotation, validationErrorsForCamelCaseFieldsShouldContainRejectedValue, validationShouldBeSkippedIfPreviousValidationErrorPresent.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free