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

getCloudPlatformWhenCloudPropertyHasBeenContributedDuringInitialLoadDeducesCloudPlatform() — spring-boot Function Reference

Architecture documentation for the getCloudPlatformWhenCloudPropertyHasBeenContributedDuringInitialLoadDeducesCloudPlatform() function in ConfigDataActivationContextTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  f71a7de4_7a0b_899d_d309_a9957cb05142["getCloudPlatformWhenCloudPropertyHasBeenContributedDuringInitialLoadDeducesCloudPlatform()"]
  19cbd6f4_81a9_bfc7_960f_0eea60e995f6["createKubernetesEnvironment()"]
  f71a7de4_7a0b_899d_d309_a9957cb05142 -->|calls| 19cbd6f4_81a9_bfc7_960f_0eea60e995f6
  bdf1886c_19f9_9cc1_5bff_886f1b1e2835["Binder()"]
  f71a7de4_7a0b_899d_d309_a9957cb05142 -->|calls| bdf1886c_19f9_9cc1_5bff_886f1b1e2835
  6b13a440_b8c4_f4d4_0bc2_c932b8debc75["MapConfigurationPropertySource()"]
  f71a7de4_7a0b_899d_d309_a9957cb05142 -->|calls| 6b13a440_b8c4_f4d4_0bc2_c932b8debc75
  style f71a7de4_7a0b_899d_d309_a9957cb05142 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataActivationContextTests.java lines 60–67

	@Test
	void getCloudPlatformWhenCloudPropertyHasBeenContributedDuringInitialLoadDeducesCloudPlatform() {
		Environment environment = createKubernetesEnvironment();
		Binder binder = new Binder(
				new MapConfigurationPropertySource(Collections.singletonMap("spring.main.cloud-platform", "HEROKU")));
		ConfigDataActivationContext context = new ConfigDataActivationContext(environment, binder);
		assertThat(context.getCloudPlatform()).isEqualTo(CloudPlatform.HEROKU);
	}

Domain

Subdomains

Frequently Asked Questions

What does getCloudPlatformWhenCloudPropertyHasBeenContributedDuringInitialLoadDeducesCloudPlatform() do?
getCloudPlatformWhenCloudPropertyHasBeenContributedDuringInitialLoadDeducesCloudPlatform() is a function in the spring-boot codebase.
What does getCloudPlatformWhenCloudPropertyHasBeenContributedDuringInitialLoadDeducesCloudPlatform() call?
getCloudPlatformWhenCloudPropertyHasBeenContributedDuringInitialLoadDeducesCloudPlatform() calls 3 function(s): Binder, MapConfigurationPropertySource, createKubernetesEnvironment.

Analyze Your Own Codebase

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

Try Supermodel Free