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

getActiveWhenEnvironmentProfilesAndBinderPropertyShouldReturnEnvironmentProperty() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

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

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

Domain

Subdomains

Frequently Asked Questions

What does getActiveWhenEnvironmentProfilesAndBinderPropertyShouldReturnEnvironmentProperty() do?
getActiveWhenEnvironmentProfilesAndBinderPropertyShouldReturnEnvironmentProperty() is a function in the spring-boot codebase.
What does getActiveWhenEnvironmentProfilesAndBinderPropertyShouldReturnEnvironmentProperty() call?
getActiveWhenEnvironmentProfilesAndBinderPropertyShouldReturnEnvironmentProperty() 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