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

bindOrCreateWhenBindSuccessfulShouldReturnBoundValue() — spring-boot Function Reference

Architecture documentation for the bindOrCreateWhenBindSuccessfulShouldReturnBoundValue() function in BinderTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  d144efc7_d91c_de65_eedf_50748813a9b3["bindOrCreateWhenBindSuccessfulShouldReturnBoundValue()"]
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  d144efc7_d91c_de65_eedf_50748813a9b3 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"]
  d144efc7_d91c_de65_eedf_50748813a9b3 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e
  76576a77_87f7_3680_8561_2923813db3c1["of()"]
  d144efc7_d91c_de65_eedf_50748813a9b3 -->|calls| 76576a77_87f7_3680_8561_2923813db3c1
  723faf45_147b_9b0f_f957_9de88f8cbb17["isEmpty()"]
  d144efc7_d91c_de65_eedf_50748813a9b3 -->|calls| 723faf45_147b_9b0f_f957_9de88f8cbb17
  44f9a833_55c3_3087_540c_65a04b97a268["getValue()"]
  d144efc7_d91c_de65_eedf_50748813a9b3 -->|calls| 44f9a833_55c3_3087_540c_65a04b97a268
  92788573_3ba0_21d6_dabe_91ac18000563["getItems()"]
  d144efc7_d91c_de65_eedf_50748813a9b3 -->|calls| 92788573_3ba0_21d6_dabe_91ac18000563
  style d144efc7_d91c_de65_eedf_50748813a9b3 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 317–323

	@Test
	void bindOrCreateWhenBindSuccessfulShouldReturnBoundValue() {
		this.sources.add(new MockConfigurationPropertySource("foo.value", "bar"));
		JavaBean result = this.binder.bindOrCreate("foo", Bindable.of(JavaBean.class));
		assertThat(result.getValue()).isEqualTo("bar");
		assertThat(result.getItems()).isEmpty();
	}

Domain

Subdomains

Frequently Asked Questions

What does bindOrCreateWhenBindSuccessfulShouldReturnBoundValue() do?
bindOrCreateWhenBindSuccessfulShouldReturnBoundValue() is a function in the spring-boot codebase.
What does bindOrCreateWhenBindSuccessfulShouldReturnBoundValue() call?
bindOrCreateWhenBindSuccessfulShouldReturnBoundValue() calls 6 function(s): MockConfigurationPropertySource, add, getItems, getValue, isEmpty, of.

Analyze Your Own Codebase

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

Try Supermodel Free