bindToCollectionShouldTriggerOnSuccess() — spring-boot Function Reference
Architecture documentation for the bindToCollectionShouldTriggerOnSuccess() function in ArrayBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD a645ab28_85d4_0bde_7aee_e8deaa411d26["bindToCollectionShouldTriggerOnSuccess()"] 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] a645ab28_85d4_0bde_7aee_e8deaa411d26 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] a645ab28_85d4_0bde_7aee_e8deaa411d26 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 69e773e6_1063_7cf5_f470_133a01c94dc9["mockBindHandler()"] a645ab28_85d4_0bde_7aee_e8deaa411d26 -->|calls| 69e773e6_1063_7cf5_f470_133a01c94dc9 76576a77_87f7_3680_8561_2923813db3c1["of()"] a645ab28_85d4_0bde_7aee_e8deaa411d26 -->|calls| 76576a77_87f7_3680_8561_2923813db3c1 style a645ab28_85d4_0bde_7aee_e8deaa411d26 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 70–80
@Test
void bindToCollectionShouldTriggerOnSuccess() {
this.sources.add(new MockConfigurationPropertySource("foo[0]", "1", "line1"));
BindHandler handler = mockBindHandler();
this.binder.bind("foo", INTEGER_LIST, 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(INTEGER_LIST), any(), isA(List.class));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindToCollectionShouldTriggerOnSuccess() do?
bindToCollectionShouldTriggerOnSuccess() is a function in the spring-boot codebase.
What does bindToCollectionShouldTriggerOnSuccess() call?
bindToCollectionShouldTriggerOnSuccess() 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