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

bindToInstanceWhenNoNestedShouldLeaveNestedAsNull() — spring-boot Function Reference

Architecture documentation for the bindToInstanceWhenNoNestedShouldLeaveNestedAsNull() function in JavaBeanBinderTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  0e6b42e7_533d_0b62_0108_a58c40ccbb6b["bindToInstanceWhenNoNestedShouldLeaveNestedAsNull()"]
  dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"]
  0e6b42e7_533d_0b62_0108_a58c40ccbb6b -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e
  725e97d2_341b_6665_84bc_9206c7185c54["put()"]
  0e6b42e7_533d_0b62_0108_a58c40ccbb6b -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  0e6b42e7_533d_0b62_0108_a58c40ccbb6b -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  76576a77_87f7_3680_8561_2923813db3c1["of()"]
  0e6b42e7_533d_0b62_0108_a58c40ccbb6b -->|calls| 76576a77_87f7_3680_8561_2923813db3c1
  fe1ea2fe_6cee_714e_16e0_77fd556bc4cc["getValueBean()"]
  0e6b42e7_533d_0b62_0108_a58c40ccbb6b -->|calls| fe1ea2fe_6cee_714e_16e0_77fd556bc4cc
  style 0e6b42e7_533d_0b62_0108_a58c40ccbb6b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/JavaBeanBinderTests.java lines 329–339

	@Test
	void bindToInstanceWhenNoNestedShouldLeaveNestedAsNull() {
		MockConfigurationPropertySource source = new MockConfigurationPropertySource();
		source.put("faf.value-bean.int-value", "123");
		this.sources.add(source);
		ExampleNestedBean bean = new ExampleNestedBean();
		BindResult<ExampleNestedBean> boundBean = this.binder.bind("foo",
				Bindable.of(ExampleNestedBean.class).withExistingValue(bean));
		assertThat(boundBean.isBound()).isFalse();
		assertThat(bean.getValueBean()).isNull();
	}

Domain

Subdomains

Frequently Asked Questions

What does bindToInstanceWhenNoNestedShouldLeaveNestedAsNull() do?
bindToInstanceWhenNoNestedShouldLeaveNestedAsNull() is a function in the spring-boot codebase.
What does bindToInstanceWhenNoNestedShouldLeaveNestedAsNull() call?
bindToInstanceWhenNoNestedShouldLeaveNestedAsNull() calls 5 function(s): MockConfigurationPropertySource, add, getValueBean, of, put.

Analyze Your Own Codebase

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

Try Supermodel Free