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

getDefaultWhenDefaultEnvironmentProfileAndBinderProperty() — spring-boot Function Reference

Architecture documentation for the getDefaultWhenDefaultEnvironmentProfileAndBinderProperty() function in ProfilesTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  c8894537_8443_87ea_adc8_d7b1f7a5b400["getDefaultWhenDefaultEnvironmentProfileAndBinderProperty()"]
  6b13a440_b8c4_f4d4_0bc2_c932b8debc75["MapConfigurationPropertySource()"]
  c8894537_8443_87ea_adc8_d7b1f7a5b400 -->|calls| 6b13a440_b8c4_f4d4_0bc2_c932b8debc75
  bdf1886c_19f9_9cc1_5bff_886f1b1e2835["Binder()"]
  c8894537_8443_87ea_adc8_d7b1f7a5b400 -->|calls| bdf1886c_19f9_9cc1_5bff_886f1b1e2835
  c90d60de_6e4d_b157_5121_acbc78d427f0["get()"]
  c8894537_8443_87ea_adc8_d7b1f7a5b400 -->|calls| c90d60de_6e4d_b157_5121_acbc78d427f0
  style c8894537_8443_87ea_adc8_d7b1f7a5b400 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/config/ProfilesTests.java lines 174–184

	@Test
	void getDefaultWhenDefaultEnvironmentProfileAndBinderProperty() {
		MockEnvironment environment = new MockEnvironment();
		environment.setProperty("spring.profiles.default", "default");
		List<ConfigurationPropertySource> sources = new ArrayList<>();
		ConfigurationPropertySources.get(environment).forEach(sources::add);
		sources.add(new MapConfigurationPropertySource(Collections.singletonMap("spring.profiles.default", "a,b,c")));
		Binder binder = new Binder(sources);
		Profiles profiles = new Profiles(environment, binder, null);
		assertThat(profiles.getDefault()).containsExactly("default");
	}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free