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

bindToCustomMapWithoutCtorAndConverterShouldResolve() — spring-boot Function Reference

Architecture documentation for the bindToCustomMapWithoutCtorAndConverterShouldResolve() function in MapBinderTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  51f3ac67_3a68_7076_376f_121167fb3e67["bindToCustomMapWithoutCtorAndConverterShouldResolve()"]
  dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"]
  51f3ac67_3a68_7076_376f_121167fb3e67 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  51f3ac67_3a68_7076_376f_121167fb3e67 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  76576a77_87f7_3680_8561_2923813db3c1["of()"]
  51f3ac67_3a68_7076_376f_121167fb3e67 -->|calls| 76576a77_87f7_3680_8561_2923813db3c1
  d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"]
  51f3ac67_3a68_7076_376f_121167fb3e67 -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a
  93b974f2_82f2_6229_2113_be029b34bbb2["getCustomMap()"]
  51f3ac67_3a68_7076_376f_121167fb3e67 -->|calls| 93b974f2_82f2_6229_2113_be029b34bbb2
  0a9a4357_4532_311d_d54c_dd77f55ff329["getSource()"]
  51f3ac67_3a68_7076_376f_121167fb3e67 -->|calls| 0a9a4357_4532_311d_d54c_dd77f55ff329
  4fef258c_a2a4_d498_7bd8_31a7595265f6["put()"]
  51f3ac67_3a68_7076_376f_121167fb3e67 -->|calls| 4fef258c_a2a4_d498_7bd8_31a7595265f6
  style 51f3ac67_3a68_7076_376f_121167fb3e67 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/MapBinderTests.java lines 646–656

	@Test
	void bindToCustomMapWithoutCtorAndConverterShouldResolve() {
		DefaultConversionService conversionService = new DefaultConversionService();
		conversionService.addConverter(new CustomMapConverter());
		MockConfigurationPropertySource source = new MockConfigurationPropertySource();
		source.put("foo.custom-map", "value");
		this.sources.add(source);
		Binder binder = new Binder(this.sources, null, conversionService, null);
		CustomMapWithoutDefaultCtor result = binder.bind("foo", Bindable.of(CustomMapWithoutDefaultCtor.class)).get();
		assertThat(result.getCustomMap().getSource()).isEqualTo("value");
	}

Domain

Subdomains

Frequently Asked Questions

What does bindToCustomMapWithoutCtorAndConverterShouldResolve() do?
bindToCustomMapWithoutCtorAndConverterShouldResolve() is a function in the spring-boot codebase.
What does bindToCustomMapWithoutCtorAndConverterShouldResolve() call?
bindToCustomMapWithoutCtorAndConverterShouldResolve() calls 7 function(s): MockConfigurationPropertySource, add, get, getCustomMap, getSource, of, put.

Analyze Your Own Codebase

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

Try Supermodel Free