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

validateFoo() — spring-boot Function Reference

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

Function java GradlePlugin AotProcessing calls 2 called by 4

Entity Profile

Dependency Diagram

graph TD
  6201a8c7_4caf_583b_5eb1_82576c6e7119["validateFoo()"]
  cf7c6591_e04f_5450_0e09_ea4a8a9318e3["simpleRepository()"]
  cf7c6591_e04f_5450_0e09_ea4a8a9318e3 -->|calls| 6201a8c7_4caf_583b_5eb1_82576c6e7119
  922dfd2b_d0df_d758_344b_164932622abd["severalRepositoriesNoConflict()"]
  922dfd2b_d0df_d758_344b_164932622abd -->|calls| 6201a8c7_4caf_583b_5eb1_82576c6e7119
  7d87f2f5_bb60_0f47_5e48_32f3fdaf0c04["repositoryWithRoot()"]
  7d87f2f5_bb60_0f47_5e48_32f3fdaf0c04 -->|calls| 6201a8c7_4caf_583b_5eb1_82576c6e7119
  ee484fef_bdca_1745_1db7_687c697fecb7["builderInstancesAreIsolated()"]
  ee484fef_bdca_1745_1db7_687c697fecb7 -->|calls| 6201a8c7_4caf_583b_5eb1_82576c6e7119
  03e76805_67f6_02dc_71cd_4fb3e6172301["contains()"]
  6201a8c7_4caf_583b_5eb1_82576c6e7119 -->|calls| 03e76805_67f6_02dc_71cd_4fb3e6172301
  4051c253_3fde_9138_3c31_037826ff1535["validatePropertyHints()"]
  6201a8c7_4caf_583b_5eb1_82576c6e7119 -->|calls| 4051c253_3fde_9138_3c31_037826ff1535
  style 6201a8c7_4caf_583b_5eb1_82576c6e7119 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 188–200

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free