use of org.springframework.boot.configurationsample.simple.DescriptionProperties in project spring-boot by spring-projects.
the class ConfigurationMetadataAnnotationProcessorTests method descriptionProperties.
@Test
void descriptionProperties() {
ConfigurationMetadata metadata = compile(DescriptionProperties.class);
assertThat(metadata).has(Metadata.withGroup("description").fromSource(DescriptionProperties.class));
assertThat(metadata).has(Metadata.withProperty("description.simple", String.class).fromSource(DescriptionProperties.class).withDescription("A simple description."));
assertThat(metadata).has(Metadata.withProperty("description.multi-line", String.class).fromSource(DescriptionProperties.class).withDescription("This is a lengthy description that spans across multiple lines to showcase that the line separators are cleaned automatically."));
}
Aggregations