validateMap() — spring-boot Function Reference
Architecture documentation for the validateMap() function in ConfigurationMetadataRepositoryJsonBuilderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 0b25affd_f952_74a6_4688_9973dc67de78["validateMap()"] 64dc8ef0_1fc0_a375_6216_18cbf4f2dc57["hintsOnMaps()"] 64dc8ef0_1fc0_a375_6216_18cbf4f2dc57 -->|calls| 0b25affd_f952_74a6_4688_9973dc67de78 03e76805_67f6_02dc_71cd_4fb3e6172301["contains()"] 0b25affd_f952_74a6_4688_9973dc67de78 -->|calls| 03e76805_67f6_02dc_71cd_4fb3e6172301 style 0b25affd_f952_74a6_4688_9973dc67de78 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 216–247
private void validateMap(ConfigurationMetadataRepository repo) {
ConfigurationMetadataGroup group = repo.getAllGroups().get("spring.map");
ConfigurationMetadataSource source = group.getSources().get("org.acme.Map");
contains(source.getProperties(), "spring.map.first", "spring.map.second", "spring.map.keys",
"spring.map.values");
assertThat(source.getProperties()).hasSize(4);
ConfigurationMetadataProperty first = repo.getAllProperties().get("spring.map.first");
assertThat(first.getHints().getKeyHints()).hasSize(2);
assertThat(first.getHints().getValueProviders()).isEmpty();
assertThat(first.getHints().getKeyHints().get(0).getValue()).isEqualTo("one");
assertThat(first.getHints().getKeyHints().get(0).getDescription()).isEqualTo("First.");
assertThat(first.getHints().getKeyHints().get(1).getValue()).isEqualTo("two");
assertThat(first.getHints().getKeyHints().get(1).getDescription()).isEqualTo("Second.");
ConfigurationMetadataProperty second = repo.getAllProperties().get("spring.map.second");
assertThat(second.getHints().getValueHints()).hasSize(2);
assertThat(second.getHints().getValueProviders()).isEmpty();
assertThat(second.getHints().getValueHints().get(0).getValue()).isEqualTo("42");
assertThat(second.getHints().getValueHints().get(0).getDescription()).isEqualTo("Choose me.");
assertThat(second.getHints().getValueHints().get(1).getValue()).isEqualTo("24");
assertThat(second.getHints().getValueHints().get(1).getDescription()).isNull();
ConfigurationMetadataProperty keys = repo.getAllProperties().get("spring.map.keys");
assertThat(keys.getHints().getValueHints()).isEmpty();
assertThat(keys.getHints().getValueProviders()).hasSize(1);
assertThat(keys.getHints().getValueProviders().get(0).getName()).isEqualTo("any");
ConfigurationMetadataProperty values = repo.getAllProperties().get("spring.map.values");
assertThat(values.getHints().getValueHints()).isEmpty();
assertThat(values.getHints().getValueProviders()).hasSize(1);
assertThat(values.getHints().getValueProviders().get(0).getName()).isEqualTo("handle-as");
assertThat(values.getHints().getValueProviders().get(0).getParameters()).hasSize(1);
assertThat(values.getHints().getValueProviders().get(0).getParameters()).containsEntry("target",
"java.lang.Integer");
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does validateMap() do?
validateMap() is a function in the spring-boot codebase.
What does validateMap() call?
validateMap() calls 1 function(s): contains.
What calls validateMap()?
validateMap() is called by 1 function(s): hintsOnMaps.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free