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

bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundSystemProperties() — spring-boot Function Reference

Architecture documentation for the bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundSystemProperties() function in NoUnboundElementsBindHandlerTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  80de474e_24f6_d9ee_7303_efa1914d0e31["bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundSystemProperties()"]
  dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"]
  80de474e_24f6_d9ee_7303_efa1914d0e31 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e
  725e97d2_341b_6665_84bc_9206c7185c54["put()"]
  80de474e_24f6_d9ee_7303_efa1914d0e31 -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  80de474e_24f6_d9ee_7303_efa1914d0e31 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  bdf1886c_19f9_9cc1_5bff_886f1b1e2835["Binder()"]
  80de474e_24f6_d9ee_7303_efa1914d0e31 -->|calls| bdf1886c_19f9_9cc1_5bff_886f1b1e2835
  8297d150_846a_4cc4_47ca_e6d5a70497f3["bind()"]
  80de474e_24f6_d9ee_7303_efa1914d0e31 -->|calls| 8297d150_846a_4cc4_47ca_e6d5a70497f3
  19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78["of()"]
  80de474e_24f6_d9ee_7303_efa1914d0e31 -->|calls| 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78
  d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"]
  80de474e_24f6_d9ee_7303_efa1914d0e31 -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a
  9865f496_a668_9db2_553e_33d03b4da7c5["getFoo()"]
  80de474e_24f6_d9ee_7303_efa1914d0e31 -->|calls| 9865f496_a668_9db2_553e_33d03b4da7c5
  style 80de474e_24f6_d9ee_7303_efa1914d0e31 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/handler/NoUnboundElementsBindHandlerTests.java lines 99–110

	@Test
	void bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundSystemProperties() {
		MockConfigurationPropertySource source = new MockConfigurationPropertySource();
		source.put("example.foo", "bar");
		source.put("example.other", "baz");
		this.sources.add(source);
		this.binder = new Binder(this.sources);
		NoUnboundElementsBindHandler handler = new NoUnboundElementsBindHandler(BindHandler.DEFAULT,
				((configurationPropertySource) -> false));
		Example bound = this.binder.bind("example", Bindable.of(Example.class), handler).get();
		assertThat(bound.getFoo()).isEqualTo("bar");
	}

Domain

Subdomains

Frequently Asked Questions

What does bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundSystemProperties() do?
bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundSystemProperties() is a function in the spring-boot codebase.
What does bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundSystemProperties() call?
bindWhenUsingNoUnboundElementsHandlerShouldBindIfUnboundSystemProperties() calls 8 function(s): Binder, MockConfigurationPropertySource, add, bind, get, getFoo, of, put.

Analyze Your Own Codebase

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

Try Supermodel Free