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

bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundNestedCollectionProperties() — spring-boot Function Reference

Architecture documentation for the bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundNestedCollectionProperties() function in NoUnboundElementsBindHandlerTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  fde90d89_999d_fe93_872f_953e5d94a40d["bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundNestedCollectionProperties()"]
  dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"]
  fde90d89_999d_fe93_872f_953e5d94a40d -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e
  725e97d2_341b_6665_84bc_9206c7185c54["put()"]
  fde90d89_999d_fe93_872f_953e5d94a40d -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  fde90d89_999d_fe93_872f_953e5d94a40d -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  bdf1886c_19f9_9cc1_5bff_886f1b1e2835["Binder()"]
  fde90d89_999d_fe93_872f_953e5d94a40d -->|calls| bdf1886c_19f9_9cc1_5bff_886f1b1e2835
  8297d150_846a_4cc4_47ca_e6d5a70497f3["bind()"]
  fde90d89_999d_fe93_872f_953e5d94a40d -->|calls| 8297d150_846a_4cc4_47ca_e6d5a70497f3
  734d9eaa_3a64_5d44_6d64_9d0737e81be2["getNested()"]
  fde90d89_999d_fe93_872f_953e5d94a40d -->|calls| 734d9eaa_3a64_5d44_6d64_9d0737e81be2
  68c9c98b_8215_495d_35b1_b9ae8d31c09b["getStringValue()"]
  fde90d89_999d_fe93_872f_953e5d94a40d -->|calls| 68c9c98b_8215_495d_35b1_b9ae8d31c09b
  19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78["of()"]
  fde90d89_999d_fe93_872f_953e5d94a40d -->|calls| 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78
  c90d60de_6e4d_b157_5121_acbc78d427f0["get()"]
  fde90d89_999d_fe93_872f_953e5d94a40d -->|calls| c90d60de_6e4d_b157_5121_acbc78d427f0
  style fde90d89_999d_fe93_872f_953e5d94a40d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/handler/NoUnboundElementsBindHandlerTests.java lines 143–161

	@Test
	void bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundNestedCollectionProperties() {
		MockConfigurationPropertySource source1 = new MockConfigurationPropertySource();
		source1.put("example.nested[0].string-value", "bar");
		MockConfigurationPropertySource source2 = new MockConfigurationPropertySource();
		source2.put("example.nested[0].string-value", "bar");
		source2.put("example.nested[0].int-value", "2");
		source2.put("example.nested[1].string-value", "baz");
		source2.put("example.nested[1].other-nested.baz", "baz");
		this.sources.add(source1);
		this.sources.add(source2);
		this.binder = new Binder(this.sources);
		NoUnboundElementsBindHandler handler = new NoUnboundElementsBindHandler();
		ExampleWithNestedList bound = this.binder.bind("example", Bindable.of(ExampleWithNestedList.class), handler)
			.get();
		List<Nested> nested = bound.getNested();
		assertThat(nested).isNotNull();
		assertThat(nested.get(0).getStringValue()).isEqualTo("bar");
	}

Domain

Subdomains

Frequently Asked Questions

What does bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundNestedCollectionProperties() do?
bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundNestedCollectionProperties() is a function in the spring-boot codebase.
What does bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundNestedCollectionProperties() call?
bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundNestedCollectionProperties() calls 9 function(s): Binder, MockConfigurationPropertySource, add, bind, get, getNested, getStringValue, of, and 1 more.

Analyze Your Own Codebase

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

Try Supermodel Free