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

bindToValueObjectFromCommaStringPropertyDoesNotFailOnEmptyElements() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

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

	@Test
	void bindToValueObjectFromCommaStringPropertyDoesNotFailOnEmptyElements() {
		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("");
		assertThat(bound.getLocation(0).getOrigin()).hasToString(expectedLocation);
		assertThat(bound.getLocation(1)).hasToString("a");
		assertThat(bound.getLocation(1).getOrigin()).hasToString(expectedLocation);
		assertThat(bound.getLocation(2)).hasToString("b");
		assertThat(bound.getLocation(2).getOrigin()).hasToString(expectedLocation);
		assertThat(bound.getLocation(3)).hasToString("");
		assertThat(bound.getLocation(3).getOrigin()).hasToString(expectedLocation);
		assertThat(bound.getLocation(4)).hasToString("c");
		assertThat(bound.getLocation(4).getOrigin()).hasToString(expectedLocation);
		assertThat(bound.getLocation(5)).hasToString("");
		assertThat(bound.getLocation(5).getOrigin()).hasToString(expectedLocation);
	}

Domain

Subdomains

Frequently Asked Questions

What does bindToValueObjectFromCommaStringPropertyDoesNotFailOnEmptyElements() do?
bindToValueObjectFromCommaStringPropertyDoesNotFailOnEmptyElements() is a function in the spring-boot codebase.
What does bindToValueObjectFromCommaStringPropertyDoesNotFailOnEmptyElements() call?
bindToValueObjectFromCommaStringPropertyDoesNotFailOnEmptyElements() 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