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

bindToNestedCollectionWhenEmptyStringShouldReturnEmptyCollection() — spring-boot Function Reference

Architecture documentation for the bindToNestedCollectionWhenEmptyStringShouldReturnEmptyCollection() function in CollectionBinderTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  e63ade1b_5b08_b8d2_1216_40b42612e9dd["bindToNestedCollectionWhenEmptyStringShouldReturnEmptyCollection()"]
  dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"]
  e63ade1b_5b08_b8d2_1216_40b42612e9dd -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e
  725e97d2_341b_6665_84bc_9206c7185c54["put()"]
  e63ade1b_5b08_b8d2_1216_40b42612e9dd -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54
  f4b76c1c_abdc_fe17_d6c1_88412a0633e7["of()"]
  e63ade1b_5b08_b8d2_1216_40b42612e9dd -->|calls| f4b76c1c_abdc_fe17_d6c1_88412a0633e7
  b36de6d8_b985_12e4_b731_db390fd85040["getValue()"]
  e63ade1b_5b08_b8d2_1216_40b42612e9dd -->|calls| b36de6d8_b985_12e4_b731_db390fd85040
  ae3e8839_c004_9959_6b5f_62134eab2a0f["getFoos()"]
  e63ade1b_5b08_b8d2_1216_40b42612e9dd -->|calls| ae3e8839_c004_9959_6b5f_62134eab2a0f
  style e63ade1b_5b08_b8d2_1216_40b42612e9dd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/CollectionBinderTests.java lines 410–420

	@Test
	void bindToNestedCollectionWhenEmptyStringShouldReturnEmptyCollection() {
		MockConfigurationPropertySource source = new MockConfigurationPropertySource();
		source.put("foo.value", "one");
		source.put("foo.foos", "");
		this.sources.add(source);
		Bindable<BeanWithNestedCollection> target = Bindable.of(BeanWithNestedCollection.class);
		BeanWithNestedCollection foo = this.binder.bind("foo", target).get();
		assertThat(foo.getValue()).isEqualTo("one");
		assertThat(foo.getFoos()).isEmpty();
	}

Domain

Subdomains

Frequently Asked Questions

What does bindToNestedCollectionWhenEmptyStringShouldReturnEmptyCollection() do?
bindToNestedCollectionWhenEmptyStringShouldReturnEmptyCollection() is a function in the spring-boot codebase.
What does bindToNestedCollectionWhenEmptyStringShouldReturnEmptyCollection() call?
bindToNestedCollectionWhenEmptyStringShouldReturnEmptyCollection() calls 5 function(s): MockConfigurationPropertySource, getFoos, getValue, of, put.

Analyze Your Own Codebase

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

Try Supermodel Free