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

getPropertyWhenValidConfigurationPropertyName() — spring-boot Function Reference

Architecture documentation for the getPropertyWhenValidConfigurationPropertyName() function in ConfigurationPropertySourcesPropertyResolverTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  5adf3627_6875_45dd_7fa4_57e500acd3c4["getPropertyWhenValidConfigurationPropertyName()"]
  4b0cbf95_105c_735c_52db_6d75ba501b16["createMockPropertySource()"]
  5adf3627_6875_45dd_7fa4_57e500acd3c4 -->|calls| 4b0cbf95_105c_735c_52db_6d75ba501b16
  939a6a16_a09a_0762_6ee9_ff1d628c537f["getProperty()"]
  5adf3627_6875_45dd_7fa4_57e500acd3c4 -->|calls| 939a6a16_a09a_0762_6ee9_ff1d628c537f
  b2e77f3e_609c_d14d_2a57_ef9c62e983d0["getCount()"]
  5adf3627_6875_45dd_7fa4_57e500acd3c4 -->|calls| b2e77f3e_609c_d14d_2a57_ef9c62e983d0
  style 5adf3627_6875_45dd_7fa4_57e500acd3c4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/source/ConfigurationPropertySourcesPropertyResolverTests.java lines 79–87

	@Test
	void getPropertyWhenValidConfigurationPropertyName() {
		ResolverEnvironment environment = new ResolverEnvironment();
		CountingMockPropertySource propertySource = createMockPropertySource(environment, true);
		assertThat(environment.getProperty("spring")).isEqualTo("boot");
		assertThat(environment.getProperty("sprong")).isNull();
		assertThat(propertySource.getCount("spring")).isOne();
		assertThat(propertySource.getCount("sprong")).isOne();
	}

Domain

Subdomains

Frequently Asked Questions

What does getPropertyWhenValidConfigurationPropertyName() do?
getPropertyWhenValidConfigurationPropertyName() is a function in the spring-boot codebase.
What does getPropertyWhenValidConfigurationPropertyName() call?
getPropertyWhenValidConfigurationPropertyName() calls 3 function(s): createMockPropertySource, getCount, getProperty.

Analyze Your Own Codebase

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

Try Supermodel Free