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

repositoryWithRoot() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  7d87f2f5_bb60_0f47_5e48_32f3fdaf0c04["repositoryWithRoot()"]
  6201a8c7_4caf_583b_5eb1_82576c6e7119["validateFoo()"]
  7d87f2f5_bb60_0f47_5e48_32f3fdaf0c04 -->|calls| 6201a8c7_4caf_583b_5eb1_82576c6e7119
  03e76805_67f6_02dc_71cd_4fb3e6172301["contains()"]
  7d87f2f5_bb60_0f47_5e48_32f3fdaf0c04 -->|calls| 03e76805_67f6_02dc_71cd_4fb3e6172301
  style 7d87f2f5_bb60_0f47_5e48_32f3fdaf0c04 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 78–89

	@Test
	void repositoryWithRoot() throws IOException {
		try (InputStream foo = getInputStreamFor("foo"); InputStream root = getInputStreamFor("root")) {
			ConfigurationMetadataRepository repo = ConfigurationMetadataRepositoryJsonBuilder.create(foo, root).build();
			validateFoo(repo);
			assertThat(repo.getAllGroups()).hasSize(2);

			contains(repo.getAllProperties(), "spring.foo.name", "spring.foo.description", "spring.foo.counter",
					"spring.root.name", "spring.root2.name");
			assertThat(repo.getAllProperties()).hasSize(5);
		}
	}

Domain

Subdomains

Frequently Asked Questions

What does repositoryWithRoot() do?
repositoryWithRoot() is a function in the spring-boot codebase.
What does repositoryWithRoot() call?
repositoryWithRoot() calls 2 function(s): contains, validateFoo.

Analyze Your Own Codebase

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

Try Supermodel Free