bindWhenHasCustomDefaultHandlerShouldTriggerOnSuccess() — spring-boot Function Reference
Architecture documentation for the bindWhenHasCustomDefaultHandlerShouldTriggerOnSuccess() function in BinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 9717b246_35c4_08d7_1def_e10b4e0ebcfb["bindWhenHasCustomDefaultHandlerShouldTriggerOnSuccess()"] 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] 9717b246_35c4_08d7_1def_e10b4e0ebcfb -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] 9717b246_35c4_08d7_1def_e10b4e0ebcfb -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 7afc6ffc_b6bf_f6c5_66da_4faa52da48d0["mockBindHandler()"] 9717b246_35c4_08d7_1def_e10b4e0ebcfb -->|calls| 7afc6ffc_b6bf_f6c5_66da_4faa52da48d0 76576a77_87f7_3680_8561_2923813db3c1["of()"] 9717b246_35c4_08d7_1def_e10b4e0ebcfb -->|calls| 76576a77_87f7_3680_8561_2923813db3c1 30c012b3_d93d_aee4_6f0c_949990908e4f["onSuccess()"] 9717b246_35c4_08d7_1def_e10b4e0ebcfb -->|calls| 30c012b3_d93d_aee4_6f0c_949990908e4f style 9717b246_35c4_08d7_1def_e10b4e0ebcfb 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 240–252
@Test
void bindWhenHasCustomDefaultHandlerShouldTriggerOnSuccess() {
this.sources.add(new MockConfigurationPropertySource("foo.value", "bar", "line1"));
BindHandler handler = mockBindHandler();
Binder binder = new Binder(this.sources, null, null, null, handler);
Bindable<JavaBean> target = Bindable.of(JavaBean.class);
binder.bind("foo", target);
InOrder inOrder = inOrder(handler);
inOrder.verify(handler)
.onSuccess(eq(ConfigurationPropertyName.of("foo.value")), eq(Bindable.of(String.class)), any(), eq("bar"));
inOrder.verify(handler)
.onSuccess(eq(ConfigurationPropertyName.of("foo")), eq(target), any(), isA(JavaBean.class));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindWhenHasCustomDefaultHandlerShouldTriggerOnSuccess() do?
bindWhenHasCustomDefaultHandlerShouldTriggerOnSuccess() is a function in the spring-boot codebase.
What does bindWhenHasCustomDefaultHandlerShouldTriggerOnSuccess() call?
bindWhenHasCustomDefaultHandlerShouldTriggerOnSuccess() calls 5 function(s): MockConfigurationPropertySource, add, mockBindHandler, of, onSuccess.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free