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

resolvePlaceholdersWhenFoundInInactiveThrowsException() — spring-boot Function Reference

Architecture documentation for the resolvePlaceholdersWhenFoundInInactiveThrowsException() function in ConfigDataEnvironmentContributorPlaceholdersResolverTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  4a155ee7_ecba_f776_c12e_f5dee75d0a09["resolvePlaceholdersWhenFoundInInactiveThrowsException()"]
  a21aadcb_eaf6_9235_becd_02acd2f280a7["TestConfigDataEnvironmentContributor()"]
  4a155ee7_ecba_f776_c12e_f5dee75d0a09 -->|calls| a21aadcb_eaf6_9235_becd_02acd2f280a7
  cbc793ed_e97d_c15a_6845_afdda27db139["TestPropertySource()"]
  4a155ee7_ecba_f776_c12e_f5dee75d0a09 -->|calls| cbc793ed_e97d_c15a_6845_afdda27db139
  9cb81299_adea_3243_aa47_b0b47be8b27a["propertyNameAndOriginOf()"]
  4a155ee7_ecba_f776_c12e_f5dee75d0a09 -->|calls| 9cb81299_adea_3243_aa47_b0b47be8b27a
  style 4a155ee7_ecba_f776_c12e_f5dee75d0a09 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributorPlaceholdersResolverTests.java lines 91–105

	@Test
	void resolvePlaceholdersWhenFoundInInactiveThrowsException() {
		List<ConfigDataEnvironmentContributor> contributors = new ArrayList<>();
		contributors.add(new TestConfigDataEnvironmentContributor(new TestPropertySource("s1", "nope", "t1"), true,
				this.conversionService));
		contributors.add(new TestConfigDataEnvironmentContributor(new TestPropertySource("s2", "test", "t2"), true,
				this.conversionService));
		contributors.add(new TestConfigDataEnvironmentContributor(new TestPropertySource("s3", "test", "t3"), false,
				this.conversionService));
		ConfigDataEnvironmentContributorPlaceholdersResolver resolver = new ConfigDataEnvironmentContributorPlaceholdersResolver(
				contributors, null, null, true, this.conversionService);
		assertThatExceptionOfType(InactiveConfigDataAccessException.class)
			.isThrownBy(() -> resolver.resolvePlaceholders("${test}"))
			.satisfies(propertyNameAndOriginOf("test", "s3"));
	}

Domain

Subdomains

Frequently Asked Questions

What does resolvePlaceholdersWhenFoundInInactiveThrowsException() do?
resolvePlaceholdersWhenFoundInInactiveThrowsException() is a function in the spring-boot codebase.
What does resolvePlaceholdersWhenFoundInInactiveThrowsException() call?
resolvePlaceholdersWhenFoundInInactiveThrowsException() calls 3 function(s): TestConfigDataEnvironmentContributor, TestPropertySource, propertyNameAndOriginOf.

Analyze Your Own Codebase

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

Try Supermodel Free