Search in sources :

Example 1 with AnnotatedGetter

use of org.springframework.boot.configurationsample.specific.AnnotatedGetter in project spring-boot by spring-projects.

the class ConfigurationMetadataAnnotationProcessorTests method annotatedGetter.

@Test
void annotatedGetter() {
    ConfigurationMetadata metadata = compile(AnnotatedGetter.class);
    assertThat(metadata).has(Metadata.withGroup("specific").fromSource(AnnotatedGetter.class));
    assertThat(metadata).has(Metadata.withProperty("specific.name", String.class).fromSource(AnnotatedGetter.class));
}
Also used : AnnotatedGetter(org.springframework.boot.configurationsample.specific.AnnotatedGetter) ConfigurationMetadata(org.springframework.boot.configurationprocessor.metadata.ConfigurationMetadata) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 ConfigurationMetadata (org.springframework.boot.configurationprocessor.metadata.ConfigurationMetadata)1 AnnotatedGetter (org.springframework.boot.configurationsample.specific.AnnotatedGetter)1