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

bindWhenConfigDataHasIgnoreImportsOptionsCreatesImportedContributorWithoutImports() — spring-boot Function Reference

Architecture documentation for the bindWhenConfigDataHasIgnoreImportsOptionsCreatesImportedContributorWithoutImports() function in ConfigDataEnvironmentContributorTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  4a035cc9_6861_261b_9251_ee246dbcddef["bindWhenConfigDataHasIgnoreImportsOptionsCreatesImportedContributorWithoutImports()"]
  d42a2b1e_13eb_6793_637c_9ed7b7139a08["TestResource()"]
  4a035cc9_6861_261b_9251_ee246dbcddef -->|calls| d42a2b1e_13eb_6793_637c_9ed7b7139a08
  882915e3_c8e7_394f_7651_c0ab8564a66b["createBoundContributor()"]
  4a035cc9_6861_261b_9251_ee246dbcddef -->|calls| 882915e3_c8e7_394f_7651_c0ab8564a66b
  723faf45_147b_9b0f_f957_9de88f8cbb17["isEmpty()"]
  4a035cc9_6861_261b_9251_ee246dbcddef -->|calls| 723faf45_147b_9b0f_f957_9de88f8cbb17
  style 4a035cc9_6861_261b_9251_ee246dbcddef fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributorTests.java lines 355–369

	@Test
	void bindWhenConfigDataHasIgnoreImportsOptionsCreatesImportedContributorWithoutImports() {
		TestResource resource = new TestResource("test");
		MockPropertySource propertySource = new MockPropertySource();
		propertySource.setProperty("spring.config.import", "test");
		ConfigData configData = new ConfigData(Collections.singleton(propertySource), ConfigData.Option.IGNORE_IMPORTS);
		ConfigDataEnvironmentContributor contributor = createBoundContributor(resource, configData, 0);
		assertThat(contributor.getKind()).isEqualTo(Kind.BOUND_IMPORT);
		assertThat(contributor.getResource()).isSameAs(resource);
		assertThat(contributor.getImports()).isEmpty();
		assertThat(contributor.isActive(this.activationContext)).isTrue();
		assertThat(contributor.getPropertySource()).isEqualTo(propertySource);
		assertThat(contributor.getConfigurationPropertySource()).isNotNull();
		assertThat(contributor.getChildren(ImportPhase.BEFORE_PROFILE_ACTIVATION)).isEmpty();
	}

Domain

Subdomains

Frequently Asked Questions

What does bindWhenConfigDataHasIgnoreImportsOptionsCreatesImportedContributorWithoutImports() do?
bindWhenConfigDataHasIgnoreImportsOptionsCreatesImportedContributorWithoutImports() is a function in the spring-boot codebase.
What does bindWhenConfigDataHasIgnoreImportsOptionsCreatesImportedContributorWithoutImports() call?
bindWhenConfigDataHasIgnoreImportsOptionsCreatesImportedContributorWithoutImports() calls 3 function(s): TestResource, createBoundContributor, isEmpty.

Analyze Your Own Codebase

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

Try Supermodel Free