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

testServletPropertySource() — spring-boot Function Reference

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

Function java GradlePlugin AotProcessing calls 2 called by 3

Entity Profile

Dependency Diagram

graph TD
  89b349b7_c065_d28e_2745_21a69780ae1b["testServletPropertySource()"]
  ee0f59e3_d7b0_5d42_64e9_c515801aaa05["propertySourceShouldBeOrderedBeforeJndiPropertySource()"]
  ee0f59e3_d7b0_5d42_64e9_c515801aaa05 -->|calls| 89b349b7_c065_d28e_2745_21a69780ae1b
  64d79e0b_79ae_a612_7548_34b6f6f16780["propertySourceShouldBeOrderedBeforeServletContextPropertySource()"]
  64d79e0b_79ae_a612_7548_34b6f6f16780 -->|calls| 89b349b7_c065_d28e_2745_21a69780ae1b
  9c775324_286d_9717_517e_65a7c85801e8["propertySourceShouldBeOrderedBeforeServletConfigPropertySource()"]
  9c775324_286d_9717_517e_65a7c85801e8 -->|calls| 89b349b7_c065_d28e_2745_21a69780ae1b
  0b3b55e5_de1f_4d92_a5ea_70e279ffc8f5["getPropertySource()"]
  89b349b7_c065_d28e_2745_21a69780ae1b -->|calls| 0b3b55e5_de1f_4d92_a5ea_70e279ffc8f5
  50642f05_3c82_223c_7bfc_55efafc1bfba["getApplication()"]
  89b349b7_c065_d28e_2745_21a69780ae1b -->|calls| 50642f05_3c82_223c_7bfc_55efafc1bfba
  style 89b349b7_c065_d28e_2745_21a69780ae1b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/support/SpringApplicationJsonEnvironmentPostProcessorTests.java lines 214–220

	private void testServletPropertySource(String servletPropertySourceName) {
		this.environment.getPropertySources().addFirst(getPropertySource(servletPropertySourceName, "servlet"));
		TestPropertySourceUtils.addInlinedPropertiesToEnvironment(this.environment,
				"SPRING_APPLICATION_JSON={\"foo\":\"bar\"}");
		this.processor.postProcessEnvironment(this.environment, getApplication());
		assertThat(this.environment.getProperty("foo")).isEqualTo("bar");
	}

Domain

Subdomains

Called By

  • propertySourceShouldBeOrderedBeforeJndiPropertySource()
  • propertySourceShouldBeOrderedBeforeServletConfigPropertySource()
  • propertySourceShouldBeOrderedBeforeServletContextPropertySource()

Frequently Asked Questions

What does testServletPropertySource() do?
testServletPropertySource() is a function in the spring-boot codebase.
What does testServletPropertySource() call?
testServletPropertySource() calls 2 function(s): getApplication, getPropertySource.
What calls testServletPropertySource()?
testServletPropertySource() is called by 3 function(s): propertySourceShouldBeOrderedBeforeJndiPropertySource, propertySourceShouldBeOrderedBeforeServletConfigPropertySource, propertySourceShouldBeOrderedBeforeServletContextPropertySource.

Analyze Your Own Codebase

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

Try Supermodel Free