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

bindWithEmptyPrefixShouldIgnorePropertiesWithEmptyName() — spring-boot Function Reference

Architecture documentation for the bindWithEmptyPrefixShouldIgnorePropertiesWithEmptyName() function in BinderTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  0299192c_daea_7dc9_af61_1c2886851024["bindWithEmptyPrefixShouldIgnorePropertiesWithEmptyName()"]
  725e97d2_341b_6665_84bc_9206c7185c54["put()"]
  0299192c_daea_7dc9_af61_1c2886851024 -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54
  76576a77_87f7_3680_8561_2923813db3c1["of()"]
  0299192c_daea_7dc9_af61_1c2886851024 -->|calls| 76576a77_87f7_3680_8561_2923813db3c1
  d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"]
  0299192c_daea_7dc9_af61_1c2886851024 -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a
  15a7fe53_5c7b_4798_0e27_cd25409fcd2b["getValue()"]
  0299192c_daea_7dc9_af61_1c2886851024 -->|calls| 15a7fe53_5c7b_4798_0e27_cd25409fcd2b
  style 0299192c_daea_7dc9_af61_1c2886851024 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/BinderTests.java lines 304–315

	@Test
	void bindWithEmptyPrefixShouldIgnorePropertiesWithEmptyName() {
		Map<String, Object> source = new HashMap<>();
		source.put("value", "hello");
		source.put("", "bar");
		Iterable<@Nullable ConfigurationPropertySource> propertySources = ConfigurationPropertySources
			.from(new MapPropertySource("test", source));
		propertySources.forEach(this.sources::add);
		Bindable<JavaBean> target = Bindable.of(JavaBean.class);
		JavaBean result = this.binder.bind("", target).get();
		assertThat(result.getValue()).isEqualTo("hello");
	}

Domain

Subdomains

Frequently Asked Questions

What does bindWithEmptyPrefixShouldIgnorePropertiesWithEmptyName() do?
bindWithEmptyPrefixShouldIgnorePropertiesWithEmptyName() is a function in the spring-boot codebase.
What does bindWithEmptyPrefixShouldIgnorePropertiesWithEmptyName() call?
bindWithEmptyPrefixShouldIgnorePropertiesWithEmptyName() calls 4 function(s): get, getValue, of, put.

Analyze Your Own Codebase

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

Try Supermodel Free