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

bindToCollectionShouldAlsoCallSetterIfPresent() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  4d343360_894e_db07_99ff_61d687e3be85["bindToCollectionShouldAlsoCallSetterIfPresent()"]
  dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"]
  4d343360_894e_db07_99ff_61d687e3be85 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e
  725e97d2_341b_6665_84bc_9206c7185c54["put()"]
  4d343360_894e_db07_99ff_61d687e3be85 -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54
  1892b500_02e7_11fb_fdac_53e2290ba004["getItems()"]
  4d343360_894e_db07_99ff_61d687e3be85 -->|calls| 1892b500_02e7_11fb_fdac_53e2290ba004
  style 4d343360_894e_db07_99ff_61d687e3be85 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 339–347

	@Test
	void bindToCollectionShouldAlsoCallSetterIfPresent() {
		MockConfigurationPropertySource source = new MockConfigurationPropertySource();
		source.put("foo.items", "a,b,c");
		this.sources.add(source);
		ExampleCollectionBean result = this.binder.bind("foo", ExampleCollectionBean.class).get();
		assertThat(result.getItems()).hasSize(4);
		assertThat(result.getItems()).containsExactly("a", "b", "c", "d");
	}

Domain

Subdomains

Frequently Asked Questions

What does bindToCollectionShouldAlsoCallSetterIfPresent() do?
bindToCollectionShouldAlsoCallSetterIfPresent() is a function in the spring-boot codebase.
What does bindToCollectionShouldAlsoCallSetterIfPresent() call?
bindToCollectionShouldAlsoCallSetterIfPresent() calls 3 function(s): MockConfigurationPropertySource, getItems, put.

Analyze Your Own Codebase

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

Try Supermodel Free