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

propertySourceShouldTrackOrigin() — spring-boot Function Reference

Architecture documentation for the propertySourceShouldTrackOrigin() function in SpringApplicationJsonEnvironmentPostProcessorTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  645e9a53_c782_2686_2b7d_4044fa109216["propertySourceShouldTrackOrigin()"]
  50642f05_3c82_223c_7bfc_55efafc1bfba["getApplication()"]
  645e9a53_c782_2686_2b7d_4044fa109216 -->|calls| 50642f05_3c82_223c_7bfc_55efafc1bfba
  c08472d1_0523_dcc9_5df2_017ca9268c5a["get()"]
  645e9a53_c782_2686_2b7d_4044fa109216 -->|calls| c08472d1_0523_dcc9_5df2_017ca9268c5a
  0b3b55e5_de1f_4d92_a5ea_70e279ffc8f5["getPropertySource()"]
  645e9a53_c782_2686_2b7d_4044fa109216 -->|calls| 0b3b55e5_de1f_4d92_a5ea_70e279ffc8f5
  54976f45_4015_acf5_aca3_ab919c007891["getPropertyName()"]
  645e9a53_c782_2686_2b7d_4044fa109216 -->|calls| 54976f45_4015_acf5_aca3_ab919c007891
  style 645e9a53_c782_2686_2b7d_4044fa109216 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/support/SpringApplicationJsonEnvironmentPostProcessorTests.java lines 131–143

	@Test
	void propertySourceShouldTrackOrigin() {
		assertThat(this.environment.resolvePlaceholders("${foo:}")).isEmpty();
		TestPropertySourceUtils.addInlinedPropertiesToEnvironment(this.environment,
				"spring.application.json={\"foo\":\"bar\"}");
		this.processor.postProcessEnvironment(this.environment, getApplication());
		PropertySource<?> propertySource = this.environment.getPropertySources().get("spring.application.json");
		assertThat(propertySource).isNotNull();
		PropertySourceOrigin origin = (PropertySourceOrigin) PropertySourceOrigin.get(propertySource, "foo");
		assertThat(origin.getPropertySource().getName()).isEqualTo("Inlined Test Properties");
		assertThat(origin.getPropertyName()).isEqualTo("spring.application.json");
		assertThat(this.environment.resolvePlaceholders("${foo:}")).isEqualTo("bar");
	}

Domain

Subdomains

Frequently Asked Questions

What does propertySourceShouldTrackOrigin() do?
propertySourceShouldTrackOrigin() is a function in the spring-boot codebase.
What does propertySourceShouldTrackOrigin() call?
propertySourceShouldTrackOrigin() calls 4 function(s): get, getApplication, getPropertyName, getPropertySource.

Analyze Your Own Codebase

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

Try Supermodel Free