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

customEnvironment() — spring-boot Function Reference

Architecture documentation for the customEnvironment() function in SpringApplicationTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  dabb3318_ab3d_43f6_890e_2802ff426dcc["customEnvironment()"]
  69816486_a4f0_d760_faa8_b84520ac7e8a["TestSpringApplication()"]
  dabb3318_ab3d_43f6_890e_2802ff426dcc -->|calls| 69816486_a4f0_d760_faa8_b84520ac7e8a
  ad833542_2916_566a_184b_ff07d5696295["getLoader()"]
  dabb3318_ab3d_43f6_890e_2802ff426dcc -->|calls| ad833542_2916_566a_184b_ff07d5696295
  3613e214_49bf_015b_c43f_7f8a1274fb0b["run()"]
  dabb3318_ab3d_43f6_890e_2802ff426dcc -->|calls| 3613e214_49bf_015b_c43f_7f8a1274fb0b
  style dabb3318_ab3d_43f6_890e_2802ff426dcc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java lines 437–445

	@Test
	void customEnvironment() {
		TestSpringApplication application = new TestSpringApplication(ExampleConfig.class);
		application.setWebApplicationType(WebApplicationType.NONE);
		ConfigurableEnvironment environment = new StandardEnvironment();
		application.setEnvironment(environment);
		this.context = application.run();
		then(application.getLoader()).should().setEnvironment(environment);
	}

Domain

Subdomains

Frequently Asked Questions

What does customEnvironment() do?
customEnvironment() is a function in the spring-boot codebase.
What does customEnvironment() call?
customEnvironment() calls 3 function(s): TestSpringApplication, getLoader, run.

Analyze Your Own Codebase

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

Try Supermodel Free