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

bindWhenExceptionInNestedContextShouldFail() — spring-boot Function Reference

Architecture documentation for the bindWhenExceptionInNestedContextShouldFail() function in IgnoreTopLevelConverterNotFoundBindHandlerTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  cebc1e74_0be3_a620_6341_5c868518c791["bindWhenExceptionInNestedContextShouldFail()"]
  dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"]
  cebc1e74_0be3_a620_6341_5c868518c791 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e
  725e97d2_341b_6665_84bc_9206c7185c54["put()"]
  cebc1e74_0be3_a620_6341_5c868518c791 -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54
  8297d150_846a_4cc4_47ca_e6d5a70497f3["bind()"]
  cebc1e74_0be3_a620_6341_5c868518c791 -->|calls| 8297d150_846a_4cc4_47ca_e6d5a70497f3
  19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78["of()"]
  cebc1e74_0be3_a620_6341_5c868518c791 -->|calls| 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78
  style cebc1e74_0be3_a620_6341_5c868518c791 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/handler/IgnoreTopLevelConverterNotFoundBindHandlerTests.java lines 78–87

	@Test
	void bindWhenExceptionInNestedContextShouldFail() {
		MockConfigurationPropertySource source = new MockConfigurationPropertySource();
		source.put("example.map", "hello");
		this.sources.add(source);
		assertThatExceptionOfType(BindException.class)
			.isThrownBy(() -> this.binder.bind("example", Bindable.of(Example.class),
					new IgnoreTopLevelConverterNotFoundBindHandler()))
			.withCauseInstanceOf(ConverterNotFoundException.class);
	}

Domain

Subdomains

Frequently Asked Questions

What does bindWhenExceptionInNestedContextShouldFail() do?
bindWhenExceptionInNestedContextShouldFail() is a function in the spring-boot codebase.
What does bindWhenExceptionInNestedContextShouldFail() call?
bindWhenExceptionInNestedContextShouldFail() calls 4 function(s): MockConfigurationPropertySource, bind, of, put.

Analyze Your Own Codebase

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

Try Supermodel Free