Search in sources :

Example 1 with SimplePrefixValueProperties

use of org.springframework.boot.configurationsample.simple.SimplePrefixValueProperties in project spring-boot by spring-projects.

the class ConfigurationMetadataAnnotationProcessorTests method simplePrefixValueProperties.

@Test
public void simplePrefixValueProperties() throws Exception {
    ConfigurationMetadata metadata = compile(SimplePrefixValueProperties.class);
    assertThat(metadata).has(Metadata.withGroup("simple").fromSource(SimplePrefixValueProperties.class));
    assertThat(metadata).has(Metadata.withProperty("simple.name", String.class).fromSource(SimplePrefixValueProperties.class));
}
Also used : SimplePrefixValueProperties(org.springframework.boot.configurationsample.simple.SimplePrefixValueProperties) ConfigurationMetadata(org.springframework.boot.configurationprocessor.metadata.ConfigurationMetadata) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 ConfigurationMetadata (org.springframework.boot.configurationprocessor.metadata.ConfigurationMetadata)1 SimplePrefixValueProperties (org.springframework.boot.configurationsample.simple.SimplePrefixValueProperties)1