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

bindToArrayShouldTriggerOnSuccess() — spring-boot Function Reference

Architecture documentation for the bindToArrayShouldTriggerOnSuccess() function in ArrayBinderTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  6055cd7c_2476_d1f0_61c8_320201743d34["bindToArrayShouldTriggerOnSuccess()"]
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  6055cd7c_2476_d1f0_61c8_320201743d34 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"]
  6055cd7c_2476_d1f0_61c8_320201743d34 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e
  69e773e6_1063_7cf5_f470_133a01c94dc9["mockBindHandler()"]
  6055cd7c_2476_d1f0_61c8_320201743d34 -->|calls| 69e773e6_1063_7cf5_f470_133a01c94dc9
  76576a77_87f7_3680_8561_2923813db3c1["of()"]
  6055cd7c_2476_d1f0_61c8_320201743d34 -->|calls| 76576a77_87f7_3680_8561_2923813db3c1
  style 6055cd7c_2476_d1f0_61c8_320201743d34 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/ArrayBinderTests.java lines 202–213

	@Test
	void bindToArrayShouldTriggerOnSuccess() {
		this.sources.add(new MockConfigurationPropertySource("foo[0]", "1", "line1"));
		BindHandler handler = mockBindHandler();
		Bindable<Integer[]> target = INTEGER_ARRAY;
		this.binder.bind("foo", target, handler);
		InOrder inOrder = inOrder(handler);
		inOrder.verify(handler)
			.onSuccess(eq(ConfigurationPropertyName.of("foo[0]")), eq(Bindable.of(Integer.class)), any(), eq(1));
		inOrder.verify(handler)
			.onSuccess(eq(ConfigurationPropertyName.of("foo")), eq(target), any(), isA(Integer[].class));
	}

Domain

Subdomains

Frequently Asked Questions

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