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

bindToInstanceWithExistingValueShouldReturnUnbound() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  5911482d_e4c2_97bb_606e_e8d22ee7fb41["bindToInstanceWithExistingValueShouldReturnUnbound()"]
  dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"]
  5911482d_e4c2_97bb_606e_e8d22ee7fb41 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  5911482d_e4c2_97bb_606e_e8d22ee7fb41 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  76576a77_87f7_3680_8561_2923813db3c1["of()"]
  5911482d_e4c2_97bb_606e_e8d22ee7fb41 -->|calls| 76576a77_87f7_3680_8561_2923813db3c1
  58edd5fc_1086_fd7e_95eb_35060e9def2a["setValueBean()"]
  5911482d_e4c2_97bb_606e_e8d22ee7fb41 -->|calls| 58edd5fc_1086_fd7e_95eb_35060e9def2a
  style 5911482d_e4c2_97bb_606e_e8d22ee7fb41 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 449–459

	@Test
	void bindToInstanceWithExistingValueShouldReturnUnbound() {
		MockConfigurationPropertySource source = new MockConfigurationPropertySource();
		this.sources.add(source);
		ExampleNestedBean existingValue = new ExampleNestedBean();
		ExampleValueBean valueBean = new ExampleValueBean();
		existingValue.setValueBean(valueBean);
		BindResult<ExampleNestedBean> result = this.binder.bind("foo",
				Bindable.of(ExampleNestedBean.class).withExistingValue(existingValue));
		assertThat(result.isBound()).isFalse();
	}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free