Search in sources :

Example 1 with ImmutableNameAnnotationProperties

use of org.springframework.boot.configurationsample.immutable.ImmutableNameAnnotationProperties in project spring-boot by spring-projects.

the class ImmutableNameAnnotationPropertiesTests method immutableNameAnnotationProperties.

@Test
void immutableNameAnnotationProperties() {
    ConfigurationMetadata metadata = compile(ImmutableNameAnnotationProperties.class);
    assertThat(metadata).has(Metadata.withProperty("named.import", String.class).fromSource(ImmutableNameAnnotationProperties.class));
}
Also used : ImmutableNameAnnotationProperties(org.springframework.boot.configurationsample.immutable.ImmutableNameAnnotationProperties) 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 ImmutableNameAnnotationProperties (org.springframework.boot.configurationsample.immutable.ImmutableNameAnnotationProperties)1