InheritanceMetadataGenerationTests Class — spring-boot Architecture
Architecture documentation for the InheritanceMetadataGenerationTests class in InheritanceMetadataGenerationTests.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
configuration-metadata/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/InheritanceMetadataGenerationTests.java lines 30–61
class InheritanceMetadataGenerationTests extends AbstractMetadataGenerationTests {
@Test
void childProperties() {
ConfigurationMetadata metadata = compile(ChildPropertiesConfig.class);
assertThat(metadata).has(Metadata.withGroup("inheritance").fromSource(ChildPropertiesConfig.class));
assertThat(metadata).has(Metadata.withGroup("inheritance.nest").fromSource(ChildProperties.class));
assertThat(metadata).has(Metadata.withGroup("inheritance.child-nest").fromSource(ChildProperties.class));
assertThat(metadata).has(Metadata.withProperty("inheritance.bool-value"));
assertThat(metadata).has(Metadata.withProperty("inheritance.int-value"));
assertThat(metadata).has(Metadata.withProperty("inheritance.long-value"));
assertThat(metadata).has(Metadata.withProperty("inheritance.nest.bool-value"));
assertThat(metadata).has(Metadata.withProperty("inheritance.nest.int-value"));
assertThat(metadata).has(Metadata.withProperty("inheritance.child-nest.bool-value"));
assertThat(metadata).has(Metadata.withProperty("inheritance.child-nest.int-value"));
}
@Test
void overrideChildProperties() {
ConfigurationMetadata metadata = compile(OverrideChildPropertiesConfig.class);
assertThat(metadata).has(Metadata.withGroup("inheritance").fromSource(OverrideChildPropertiesConfig.class));
assertThat(metadata).has(Metadata.withGroup("inheritance.nest").fromSource(OverrideChildProperties.class));
assertThat(metadata).has(Metadata.withProperty("inheritance.bool-value"));
assertThat(metadata).has(Metadata.withProperty("inheritance.int-value"));
assertThat(metadata).has(Metadata.withProperty("inheritance.long-value"));
assertThat(metadata).has(Metadata.withProperty("inheritance.nest.bool-value"));
assertThat(metadata).has(Metadata.withProperty("inheritance.nest.int-value"));
assertThat(metadata).has(Metadata.withProperty("inheritance.nest.long-value"));
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free