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

bindToMapStringArrayShouldTriggerOnSuccess() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  a2dfa560_8342_df00_67ec_6d94c9789746["bindToMapStringArrayShouldTriggerOnSuccess()"]
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  a2dfa560_8342_df00_67ec_6d94c9789746 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"]
  a2dfa560_8342_df00_67ec_6d94c9789746 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e
  ca5e92b6_7135_7485_ffad_0ad6d31ca36d["mockBindHandler()"]
  a2dfa560_8342_df00_67ec_6d94c9789746 -->|calls| ca5e92b6_7135_7485_ffad_0ad6d31ca36d
  76576a77_87f7_3680_8561_2923813db3c1["of()"]
  a2dfa560_8342_df00_67ec_6d94c9789746 -->|calls| 76576a77_87f7_3680_8561_2923813db3c1
  style a2dfa560_8342_df00_67ec_6d94c9789746 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 350–361

	@Test
	void bindToMapStringArrayShouldTriggerOnSuccess() {
		this.sources.add(new MockConfigurationPropertySource("foo.bar", "a,b,c", "line1"));
		BindHandler handler = mockBindHandler();
		Bindable<Map<String, String[]>> target = STRING_ARRAY_MAP;
		this.binder.bind("foo", target, handler);
		InOrder ordered = inOrder(handler);
		ordered.verify(handler)
			.onSuccess(eq(ConfigurationPropertyName.of("foo.bar")), eq(Bindable.of(String[].class)), any(),
					assertArg((array) -> assertThat((String[]) array).containsExactly("a", "b", "c")));
		ordered.verify(handler).onSuccess(eq(ConfigurationPropertyName.of("foo")), eq(target), any(), isA(Map.class));
	}

Domain

Subdomains

Frequently Asked Questions

What does bindToMapStringArrayShouldTriggerOnSuccess() do?
bindToMapStringArrayShouldTriggerOnSuccess() is a function in the spring-boot codebase.
What does bindToMapStringArrayShouldTriggerOnSuccess() call?
bindToMapStringArrayShouldTriggerOnSuccess() calls 4 function(s): MockConfigurationPropertySource, add, mockBindHandler, of.

Analyze Your Own Codebase

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

Try Supermodel Free