NameAnnotationPropertiesTests Class — spring-boot Architecture
Architecture documentation for the NameAnnotationPropertiesTests class in NameAnnotationPropertiesTests.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/NameAnnotationPropertiesTests.java lines 36–90
class NameAnnotationPropertiesTests extends AbstractMetadataGenerationTests {
@Test
void constructorParameterNameAnnotationProperties() {
ConfigurationMetadata metadata = compile(ConstructorParameterNameAnnotationProperties.class);
assertThat(metadata)
.has(Metadata.withProperty("named.import", String.class)
.fromSource(ConstructorParameterNameAnnotationProperties.class)
.withDescription("Imports to apply."))
.has(Metadata.withProperty("named.default", Boolean.class)
.fromSource(ConstructorParameterNameAnnotationProperties.class)
.withDefaultValue("Whether default mode is enabled.")
.withDefaultValue(true));
}
@Test
void recordComponentNameAnnotationProperties() {
ConfigurationMetadata metadata = compile(RecordComponentNameAnnotationProperties.class);
assertThat(metadata)
.has(Metadata.withProperty("named.import", String.class)
.fromSource(RecordComponentNameAnnotationProperties.class)
.withDescription("Imports to apply."))
.has(Metadata.withProperty("named.default", Boolean.class)
.fromSource(RecordComponentNameAnnotationProperties.class)
.withDefaultValue("Whether default mode is enabled.")
.withDefaultValue(true));
}
@Test
void javaBeanNameAnnotationProperties() {
ConfigurationMetadata metadata = compile(JavaBeanNameAnnotationProperties.class);
assertThat(metadata)
.has(Metadata.withProperty("named.import", String.class)
.fromSource(JavaBeanNameAnnotationProperties.class)
.withDescription("Imports to apply."))
.has(Metadata.withProperty("named.default", Boolean.class)
.fromSource(JavaBeanNameAnnotationProperties.class)
.withDefaultValue("Whether default mode is enabled.")
.withDefaultValue(true));
}
@Test
void lombokNameAnnotationProperties() {
ConfigurationMetadata metadata = compile(LombokNameAnnotationProperties.class);
assertThat(metadata)
.has(Metadata.withProperty("named.import", String.class)
.fromSource(LombokNameAnnotationProperties.class)
.withDescription("Imports to apply."))
.has(Metadata.withProperty("named.default", Boolean.class)
.fromSource(LombokNameAnnotationProperties.class)
.withDefaultValue("Whether default mode is enabled.")
.withDefaultValue(true));
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free