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

validateBar() — spring-boot Function Reference

Architecture documentation for the validateBar() function in ConfigurationMetadataRepositoryJsonBuilderTests.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  ec50ffef_dcd0_bfca_4b0f_77ef22e274e4["validateBar()"]
  922dfd2b_d0df_d758_344b_164932622abd["severalRepositoriesNoConflict()"]
  922dfd2b_d0df_d758_344b_164932622abd -->|calls| ec50ffef_dcd0_bfca_4b0f_77ef22e274e4
  ee484fef_bdca_1745_1db7_687c697fecb7["builderInstancesAreIsolated()"]
  ee484fef_bdca_1745_1db7_687c697fecb7 -->|calls| ec50ffef_dcd0_bfca_4b0f_77ef22e274e4
  03e76805_67f6_02dc_71cd_4fb3e6172301["contains()"]
  ec50ffef_dcd0_bfca_4b0f_77ef22e274e4 -->|calls| 03e76805_67f6_02dc_71cd_4fb3e6172301
  4051c253_3fde_9138_3c31_037826ff1535["validatePropertyHints()"]
  ec50ffef_dcd0_bfca_4b0f_77ef22e274e4 -->|calls| 4051c253_3fde_9138_3c31_037826ff1535
  style ec50ffef_dcd0_bfca_4b0f_77ef22e274e4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-metadata/src/test/java/org/springframework/boot/configurationmetadata/ConfigurationMetadataRepositoryJsonBuilderTests.java lines 202–214

	private void validateBar(ConfigurationMetadataRepository repo) {
		ConfigurationMetadataGroup group = repo.getAllGroups().get("spring.bar");
		contains(group.getSources(), "org.acme.Bar", "org.springframework.boot.BarProperties");
		ConfigurationMetadataSource source = group.getSources().get("org.acme.Bar");
		contains(source.getProperties(), "spring.bar.name", "spring.bar.description");
		assertThat(source.getProperties()).hasSize(2);
		ConfigurationMetadataSource source2 = group.getSources().get("org.springframework.boot.BarProperties");
		contains(source2.getProperties(), "spring.bar.name", "spring.bar.counter");
		assertThat(source2.getProperties()).hasSize(2);
		validatePropertyHints(repo.getAllProperties().get("spring.bar.name"), 0, 0);
		validatePropertyHints(repo.getAllProperties().get("spring.bar.description"), 2, 2);
		validatePropertyHints(repo.getAllProperties().get("spring.bar.counter"), 0, 0);
	}

Domain

Subdomains

Frequently Asked Questions

What does validateBar() do?
validateBar() is a function in the spring-boot codebase.
What does validateBar() call?
validateBar() calls 2 function(s): contains, validatePropertyHints.
What calls validateBar()?
validateBar() is called by 2 function(s): builderInstancesAreIsolated, severalRepositoriesNoConflict.

Analyze Your Own Codebase

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

Try Supermodel Free