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

runWhenHasDefaultPropertiesIncludesDefaultPropertiesLast() — spring-boot Function Reference

Architecture documentation for the runWhenHasDefaultPropertiesIncludesDefaultPropertiesLast() function in ConfigDataEnvironmentPostProcessorIntegrationTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  99ebecd2_8538_9ddd_4295_6c86523a31d5["runWhenHasDefaultPropertiesIncludesDefaultPropertiesLast()"]
  0307cf8d_fc8f_0c1f_27ae_adc000d77a4c["setDefaultProperties()"]
  99ebecd2_8538_9ddd_4295_6c86523a31d5 -->|calls| 0307cf8d_fc8f_0c1f_27ae_adc000d77a4c
  61bdfef1_4c77_f177_2d1a_f452f9d7a529["getProperty()"]
  99ebecd2_8538_9ddd_4295_6c86523a31d5 -->|calls| 61bdfef1_4c77_f177_2d1a_f452f9d7a529
  f5ecfeee_2faa_bfff_05c7_ad8e17034d42["run()"]
  99ebecd2_8538_9ddd_4295_6c86523a31d5 -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42
  76576a77_87f7_3680_8561_2923813db3c1["of()"]
  99ebecd2_8538_9ddd_4295_6c86523a31d5 -->|calls| 76576a77_87f7_3680_8561_2923813db3c1
  style 99ebecd2_8538_9ddd_4295_6c86523a31d5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessorIntegrationTests.java lines 377–384

	@Test
	@WithResource(name = "application.properties", content = "my.property=fromapplicationproperties")
	void runWhenHasDefaultPropertiesIncludesDefaultPropertiesLast() {
		this.application.setDefaultProperties(Map.of("my.property", "fromdefaults", "my.fallback", "fromdefaults"));
		ConfigurableApplicationContext context = this.application.run();
		assertThat(context.getEnvironment().getProperty("my.fallback")).isEqualTo("fromdefaults");
		assertThat(context.getEnvironment().getProperty("my.property")).isEqualTo("fromapplicationproperties");
	}

Domain

Subdomains

Frequently Asked Questions

What does runWhenHasDefaultPropertiesIncludesDefaultPropertiesLast() do?
runWhenHasDefaultPropertiesIncludesDefaultPropertiesLast() is a function in the spring-boot codebase.
What does runWhenHasDefaultPropertiesIncludesDefaultPropertiesLast() call?
runWhenHasDefaultPropertiesIncludesDefaultPropertiesLast() calls 4 function(s): getProperty, of, run, setDefaultProperties.

Analyze Your Own Codebase

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

Try Supermodel Free