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

bindToValueObjectFromCommaStringPropertySetsOrigin() — spring-boot Function Reference

Architecture documentation for the bindToValueObjectFromCommaStringPropertySetsOrigin() function in ConfigDataLocationBindHandlerTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  139c6404_b8eb_f36c_a308_826587727e66["bindToValueObjectFromCommaStringPropertySetsOrigin()"]
  6b13a440_b8c4_f4d4_0bc2_c932b8debc75["MapConfigurationPropertySource()"]
  139c6404_b8eb_f36c_a308_826587727e66 -->|calls| 6b13a440_b8c4_f4d4_0bc2_c932b8debc75
  4fef258c_a2a4_d498_7bd8_31a7595265f6["put()"]
  139c6404_b8eb_f36c_a308_826587727e66 -->|calls| 4fef258c_a2a4_d498_7bd8_31a7595265f6
  bdf1886c_19f9_9cc1_5bff_886f1b1e2835["Binder()"]
  139c6404_b8eb_f36c_a308_826587727e66 -->|calls| bdf1886c_19f9_9cc1_5bff_886f1b1e2835
  8297d150_846a_4cc4_47ca_e6d5a70497f3["bind()"]
  139c6404_b8eb_f36c_a308_826587727e66 -->|calls| 8297d150_846a_4cc4_47ca_e6d5a70497f3
  c90d60de_6e4d_b157_5121_acbc78d427f0["get()"]
  139c6404_b8eb_f36c_a308_826587727e66 -->|calls| c90d60de_6e4d_b157_5121_acbc78d427f0
  47a9f00f_7a42_2080_2b93_d2cebb4b8243["getLocation()"]
  139c6404_b8eb_f36c_a308_826587727e66 -->|calls| 47a9f00f_7a42_2080_2b93_d2cebb4b8243
  style 139c6404_b8eb_f36c_a308_826587727e66 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataLocationBindHandlerTests.java lines 95–108

	@Test
	void bindToValueObjectFromCommaStringPropertySetsOrigin() {
		MapConfigurationPropertySource source = new MapConfigurationPropertySource();
		source.put("test.locations", "a,b,c");
		Binder binder = new Binder(source);
		ValueObject bound = binder.bind("test", VALUE_OBJECT, this.handler).get();
		String expectedLocation = "\"test.locations\" from property source \"source\"";
		assertThat(bound.getLocation(0)).hasToString("a");
		assertThat(bound.getLocation(0).getOrigin()).hasToString(expectedLocation);
		assertThat(bound.getLocation(1)).hasToString("b");
		assertThat(bound.getLocation(1).getOrigin()).hasToString(expectedLocation);
		assertThat(bound.getLocation(2)).hasToString("c");
		assertThat(bound.getLocation(2).getOrigin()).hasToString(expectedLocation);
	}

Domain

Subdomains

Frequently Asked Questions

What does bindToValueObjectFromCommaStringPropertySetsOrigin() do?
bindToValueObjectFromCommaStringPropertySetsOrigin() is a function in the spring-boot codebase.
What does bindToValueObjectFromCommaStringPropertySetsOrigin() call?
bindToValueObjectFromCommaStringPropertySetsOrigin() calls 6 function(s): Binder, MapConfigurationPropertySource, bind, get, getLocation, put.

Analyze Your Own Codebase

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

Try Supermodel Free